function onEndDefaultLocalNav($menu, $user) { $user = common_current_user(); if (!empty($user)) { $searches = SearchSub::forProfile($user->getProfile()); if (!empty($searches) && count($searches) > 0) { $searchSubMenu = new SearchSubMenu($menu->out, $user, $searches); // TRANS: Sub menu for searches. $menu->submenu(_m('MENU', 'Searches'), $searchSubMenu); } } return true; }