I tried an upgrade to 1.10.1 but one of my module no longer receives ContentPreCompile events (cf. below for the relevant parts). Does anybody know where that could come from ?
Btw. is the plugin api formally documented somewhere ?
Thanks.
Daniel
Code: Select all
function IsPluginModule () { return false; }
function HandlesEvents () { return true; }
function GetDependencies () { return array(); }
function MinimumCMSVersion() { return '1.9.1'; }
function SetParameters ()
{
$this->AddEventHandler ('Core', 'ContentPreCompile', true);
$this->AddEventHandler ('Core', 'GlobalContentPreCompile', true );
}
function DoEvent($o, $e, &$p)
{
debug_to_log('DoEvent');
if ($o == 'Core') {
if ($e == 'ContentPreCompile')
{ debug_to_log('ContentPreCompile'); }
else if ($e == 'GlobalContentPreCompile')
{ debug_to_log('GlobalContentPreCompile'); }
}
}