]> git.wh0rd.org - tt-rss.git/commitdiff
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 2 Apr 2013 14:51:24 +0000 (18:51 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 2 Apr 2013 14:51:24 +0000 (18:51 +0400)
classes/pluginhost.php
include/functions.php

index 5b8a77fd64e9d8e90991a863ff4e115715dc9bb3..a75027033ae57227e791f063c7297de917070c6d 100644 (file)
@@ -27,6 +27,7 @@ class PluginHost {
        const HOOK_TOOLBAR_BUTTON = 15;
        const HOOK_ACTION_ITEM = 16;
        const HOOK_HEADLINE_TOOLBAR_BUTTON = 17;
+       const HOOK_HOTKEY_INFO = 18;
 
        const KIND_ALL = 1;
        const KIND_SYSTEM = 2;
index 9c58f807aa1b391818f2c9074d76cad56fd971fd..f273e2f80245f9adce87445eb4339059d9e0aac7 100644 (file)
                                "help_dialog" => __("Show help dialog"))
                        );
 
+               global $pluginhost;
+               foreach ($pluginhost->get_hooks($pluginhost::HOOK_HOTKEY_INFO) as $plugin) {
+                       $hotkeys = $plugin->hook_hotkey_info($hotkeys);
+               }
+
                return $hotkeys;
        }