From 08c6a1bdc16d7cc9717788172251c6e5eae3e443 Mon Sep 17 00:00:00 2001 From: Clemens Neubauer Date: Sat, 7 Dec 2019 12:59:53 +0100 Subject: Extend hooks (#2704) It adds two new hooks to have more options for influencing with extensions. --- lib/Minz/ExtensionManager.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/Minz/ExtensionManager.php') diff --git a/lib/Minz/ExtensionManager.php b/lib/Minz/ExtensionManager.php index 2240b7642..e6b8dafb0 100644 --- a/lib/Minz/ExtensionManager.php +++ b/lib/Minz/ExtensionManager.php @@ -15,6 +15,10 @@ class Minz_ExtensionManager { // List of available hooks. Please keep this list sorted. private static $hook_list = array( + 'check_url_before_add' => array( // function($url) -> Url | null + 'list' => array(), + 'signature' => 'OneToOne', + ), 'entry_before_display' => array( // function($entry) -> Entry | null 'list' => array(), 'signature' => 'OneToOne', @@ -23,6 +27,10 @@ class Minz_ExtensionManager { 'list' => array(), 'signature' => 'OneToOne', ), + 'feed_before_actualize' => array( // function($feed) -> Feed | null + 'list' => array(), + 'signature' => 'OneToOne', + ), 'feed_before_insert' => array( // function($feed) -> Feed | null 'list' => array(), 'signature' => 'OneToOne', -- cgit v1.2.3