]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/homestubnav.php
Event fixes for activityhandlerplugin
[quix0rs-gnu-social.git] / lib / homestubnav.php
index 7dd6ae19a1a1d703af160a6efc1e1032be90e5b0..64212f18aaf3c596d8cbe0dd63b21b719361cb3b 100644 (file)
@@ -49,13 +49,18 @@ class HomeStubNav extends Menu
 {
     function getItems()
     {
-        return array(array('top',
-                           array(),
-                           // TRANS: Menu item in personal group navigation menu.
-                           _m('MENU','Home'),
-                           // TRANS: Menu item title in personal group navigation menu.
-                           // TRANS: %s is a username.
-                           _('Back to top'),
-                           'nav_return_top'));
+        $items = array();
+        if (Event::handle('StartHomeStubNavItems', array($this->action, &$items))) {
+            $items[] = array('top',
+                            array(),
+                            // TRANS: Menu item in personal group navigation menu.
+                            _m('MENU','Home'),
+                            // TRANS: Menu item title in personal group navigation menu.
+                            // TRANS: %s is a username.
+                            _('Back to top'),
+                            'nav_return_top');
+            Event::handle('EndHomeStubNavItems', array($this->action, &$items));
+        }
+        return $items;
     }
 }