Changes

Line 19: Line 19:  
$hookmanager=new HookManager($db);
 
$hookmanager=new HookManager($db);
 
$hookmanager->initHooks(array('context'));
 
$hookmanager->initHooks(array('context'));
if (empty($reshook))
  −
{
  −
  ... // standard code that can be disabled/replaced by hook if return code > 0.
  −
}
   
</source>
 
</source>
   Line 38: Line 34:  
$reshook=$hookmanager->executeHooks('hookname',$parameters,$object,$action); // See description below
 
$reshook=$hookmanager->executeHooks('hookname',$parameters,$object,$action); // See description below
 
// Note that $action and $object may have been modified by hook
 
// Note that $action and $object may have been modified by hook
 +
if (empty($reshook))
 +
{
 +
  ... // standard code that can be disabled/replaced by hook if return code > 0.
 +
}
 
</source>
 
</source>