mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-02 19:27:52 +02:00
Plugin API - Actions - Closure support added.
This commit is contained in:
@@ -47,7 +47,7 @@ class Action
|
|||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $action_name Action name
|
* @param string $action_name Action name
|
||||||
* @param string $added_function Added function
|
* @param mixed $added_function Added function
|
||||||
* @param integer $priority Priority. Default is 10
|
* @param integer $priority Priority. Default is 10
|
||||||
* @param array $args Arguments
|
* @param array $args Arguments
|
||||||
*/
|
*/
|
||||||
@@ -56,7 +56,7 @@ class Action
|
|||||||
// Hooks a function on to a specific action.
|
// Hooks a function on to a specific action.
|
||||||
Action::$actions[] = array(
|
Action::$actions[] = array(
|
||||||
'action_name' => (string) $action_name,
|
'action_name' => (string) $action_name,
|
||||||
'function' => (string) $added_function,
|
'function' => $added_function,
|
||||||
'priority' => (int) $priority,
|
'priority' => (int) $priority,
|
||||||
'args' => $args
|
'args' => $args
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user