Implemented Option to change Teams position in navigation menu

jOOc

Active Member
As of now its hard coded to middle. Can you make it an option where I want the "Teams" menu to appear in the navigation?

Code:
    public static function navigation_tabs(array &$extraTabs, $selectedTabId)
    {
        if (self::$_canViewTeams)
        {
            $extraTabs[TEAM_ROUTE_ACTION] = array(
                'href' => XenForo_Link::buildPublicLink("full:" . TEAM_ROUTE_PREFIX),
                'title' => new XenForo_Phrase("Teams_teams"),
                'position' => "middle",
                'selected' => ($selectedTabId == TEAM_ROUTE_PREFIX),
                'linksTemplate' => 'Team_navigation_tab_links'
            );
        }
       
    }
 
Back
Top