mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Allow triggers to call arbitrary functions
This commit is contained in:
parent
9f35a3c95b
commit
74ac1e5141
3 changed files with 46 additions and 2 deletions
|
|
@ -625,6 +625,21 @@ class moduleModel extends module
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get trigger functions
|
||||
*/
|
||||
function getTriggerFunctions($trigger_name, $called_position)
|
||||
{
|
||||
if(isset($GLOBALS['__trigger_functions__'][$trigger_name][$called_position]))
|
||||
{
|
||||
return $GLOBALS['__trigger_functions__'][$trigger_name][$called_position];
|
||||
}
|
||||
else
|
||||
{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get a list of all triggers on the trigger_name
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue