X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fhomestubnav.php;h=64212f18aaf3c596d8cbe0dd63b21b719361cb3b;hb=746e658f3e398948fe8c3f047e2b35ef6aa7ebd5;hp=e9f4ba23088fc238aa32fcea1bd65f1a11e68f95;hpb=4af466f1a609d2ef503bbc70d9efdcadda1d91f9;p=quix0rs-gnu-social.git diff --git a/lib/homestubnav.php b/lib/homestubnav.php index e9f4ba2308..64212f18aa 100644 --- a/lib/homestubnav.php +++ b/lib/homestubnav.php @@ -49,13 +49,18 @@ class HomeStubNav extends Menu { function getItems() { - return array(array('top', - null, - // 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; } }