kronoszx
5/16/2017 - 5:09 PM

Custom hooks

Custom hooks

public function install() {
if (!parent::install() || !$this->registerHook('leftColumn') || !$this->registerHook('myCustomHook'))
return false;
return true;
}

public function hookMyCustomHook($params)
{
return $this->display(__FILE__, 'nameofmynewmodule.tpl');
}


{hook h='myCustomHook'}