fm_script_control


bool fm_script_control ( [bool $status] )


 

Description


Allows you to enable or disable script triggering or get the current status.

 

Parameters


status (optional)
Pass in false to disable script triggering or true to enable script triggering.

 

Return


Returns true if script triggering is enabled or false if script triggering is disabled. If no parameter is passed in, the current status will be returned.


Errors


There are no errors for this function.

 

Example 1 - Disable script triggering and confirm
fm_script_control(false);
echo fm_script_control() ? 'enabled' : 'disabled';
/*
Returns: disabled
*/