Mikey
Well-known member
I have two code event listeners for two different add ons, one seems to cancel the other out?
Both listen to "navigation_tabs" and look pretty much the same.
At first I thought it was because both have the same function name (addNavbarTab) so I changed them to addAddOnNavbarTab, but still no dice.
Am I doing something wrong? Why would one cancel the other out?
Sorry for the influx of questions, btw.
Both listen to "navigation_tabs" and look pretty much the same.
PHP:
public static function addNavbarTab(array & $extraTabs, $selectedTabId)
{
$options = XenForo_Application::get('options');
if ($options->AddOnTabEnabled) {
$extraTabs['info'] = array(
'title' => new XenForo_Phrase('AddOn_NavTab_TabName'),
'linksTemplate' => 'AddOn_NavTab_TabMenu',
'href' => XenForo_Link::buildPublicLink('addon'),
'position' => $options->AddOnNavTabPosition
);
}
}
At first I thought it was because both have the same function name (addNavbarTab) so I changed them to addAddOnNavbarTab, but still no dice.
Am I doing something wrong? Why would one cancel the other out?
Sorry for the influx of questions, btw.