Documentation
IPS_ActionExists
bool IPS_ActionExists (string $ActionID)
Parameters
| ActionID | GUID of the action to be checked |
Returns
If the action exists in the system, TRUE is returned, otherwise FALSE.
Description
The function checks whether the action with the GUID ActionID exists. Actions of libraries only exist while the library is installed. An invalid GUID does not cause an error but returns FALSE.
IPS_GetActions returns all available actions.
Example
if (IPS_ActionExists('{346AA8C1-30E0-1663-78EF-93EFADFAC650}')) {
echo 'The action "Execute PHP Code" is available!';
}