X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fhomestubnav.php;h=64212f18aaf3c596d8cbe0dd63b21b719361cb3b;hb=4d6b5e70dff54f168d5e38ef53405ab184af4538;hp=e9f4ba23088fc238aa32fcea1bd65f1a11e68f95;hpb=f79aec36feaa4760201a7e88d5b31513a3c458ba;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; } }