src/OwpCms.inc.php
static public function macroReplace($stringData, $replacementAssociativeArray)
    {
        if(is_string($stringData) && is_array($replacementAssociativeArray) && array_diff_key($replacementAssociativeArray, array_keys(array_keys($replacementAssociativeArray)))) {
            self::$replacementAssociativeArray = $replacementAssociativeArray;
            self::$srArrayk = array();
            self::$srArrayv = array();
            foreach(self::$replacementAssociativeArray as $rAAk => $rAAv) {
                self::$srArrayk[] = "{{".$rAAk."}}";
                self::$srArrayv[] = $rAAv;
            }

            return str_replace(self::$srArrayk, self::$srArrayv, $stringData);
        }
        else
            {
            throw new InvalidArgumentException("Arguments are not the correct data types.");
        }

    }
static public function macroReplace($stringData, $replacementAssociativeArray)
    {
        if(is_string($stringData) && is_array($replacementAssociativeArray) && array_diff_key($replacementAssociativeArray, array_keys(array_keys($replacementAssociativeArray)))) {
            self::$replacementAssociativeArray = $replacementAssociativeArray;
            self::$srArrayk = array();
            self::$srArrayv = array();
            foreach(self::$replacementAssociativeArray as $rAAk => $rAAv) {
                self::$srArrayk[] = "{{".$rAAk."}}";
                self::$srArrayv[] = $rAAv;
            }

            return str_replace(self::$srArrayk, self::$srArrayv, $stringData);
        }
        else
            {
            throw new InvalidArgumentException("Arguments are not the correct data types.");
        }

    }
macroReplace

@method mixed macroReplace($stringData, $replacementAssociativeArray) Provides a macro replacement method the the cms content.
@access public

@param  string $stringData                  Mod data array key
@param  array  $replacementAssociativeArray Replacement data array key
@throws InvalidArgumentException Arguments are not the correct data types.
@return string

@author  Brian Tafoya <btafoya@briantafoya.com>
@version 1.0