Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
themeEclipse
languagephp
titleExample 1 - Disable script triggering and confirm
fm_script_control(false);
echo fm_script_control() ? 'enabled' : 'disabled';
/*
Returns: disabled
*/

Change Log

VersionDescription
3.0.0No change.