Jamie Corcoran
Member
I'm trying to create a template hook but it's not working for some reason. I already have a navigation_tabs code event listener running (don't know if it matters).
Listen to Event: template hook
Execute Callback: LIGLivestream_Listener::templateHook
Callback Execution Order: 10
Add-on: Livestream page
Does anyone know what could be wrong?
Listen to Event: template hook
Execute Callback: LIGLivestream_Listener::templateHook
Callback Execution Order: 10
Add-on: Livestream page
PHP:
<?php
[...]
class class LIGLivestream_Listener
{
public static function navigation_tabs(array &$extraTabs, $selectedTabId)
{
[...]
}
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
$content = "blahrgh"; //making sure that it's working....
}
}
Does anyone know what could be wrong?