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.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
fm_script_control(false); echo fm_script_control() ? 'enabled' : 'disabled'; /* Returns: disabled */ |
Change Log
Version | Description |
---|---|
3.0.0 | No change. |