Developer's Manual  Function Reference  Macro Functions  suPrepareMacro

suPrepareMacro

Prepares macro commands for execution.


int suPrepareMacro
(string text, array empty_array)

The function looks for a macro commands in the given text. If found they are added to the global array for future processing by the suExecmacro() function. The function returs 1 if macros was found and 0 if not. For more infomation on using macro language refer to Macro Language section.

Example

<?
$var
= Array();
if(
suPrepareMacro($block['editor']['data'], $var))
    
suExecMacro();
?>
Please login to add comments.