diff options
| author | 2014-12-07 14:31:50 +0100 | |
|---|---|---|
| committer | 2014-12-07 14:31:50 +0100 | |
| commit | 5932c3427b060d4f0aeab92d7ed17c8e8d4fd1d7 (patch) | |
| tree | 8802ee6dc68daf501ee64f4a0c299e01a6e93539 /lib/Minz/ExtensionManager.php | |
| parent | 08546af75ff9a25eac3409649ea4660fe070720c (diff) | |
Add entry_before_display hook
See https://github.com/FreshRSS/FreshRSS/issues/252
Diffstat (limited to 'lib/Minz/ExtensionManager.php')
| -rw-r--r-- | lib/Minz/ExtensionManager.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Minz/ExtensionManager.php b/lib/Minz/ExtensionManager.php index 7557e178f..5491c7cf6 100644 --- a/lib/Minz/ExtensionManager.php +++ b/lib/Minz/ExtensionManager.php @@ -13,8 +13,10 @@ class Minz_ExtensionManager { private static $ext_auto_enabled = array(); + // List of available hooks. Please keep this list sorted. private static $hook_list = array( - 'entry_before_insert' => array(), // function($entry) + 'entry_before_display' => array(), // function($entry) -> Entry | null + 'entry_before_insert' => array(), // function($entry) -> Entry | null ); private static $ext_to_hooks = array(); @@ -230,7 +232,7 @@ class Minz_ExtensionManager { $args = func_get_args(); unset($args[0]); - $result = $args; + $result = $args[1]; foreach (self::$hook_list[$hook_name] as $function) { $result = call_user_func_array($function, $args); |
