[-] MO: exec hook on hook registration #PSCFV-8977

This commit is contained in:
Rémi Gaillard
2013-07-01 16:12:33 +02:00
parent 0e0d8c58d0
commit 09359d011f
4 changed files with 21 additions and 6 deletions

View File

@@ -668,6 +668,7 @@ abstract class ModuleCore
if ($alias = Hook::getRetroHookName($hook_name))
$hook_name = $alias;
Hook::exec('actionModuleRegisterHookBefore', array('object' => $this, 'hook_name' => $hook_name));
// Get hook id
$id_hook = Hook::getIdByName($hook_name);
@@ -714,6 +715,7 @@ abstract class ModuleCore
));
}
Hook::exec('actionModuleRegisterHookAfter', array('object' => $this, 'hook_name' => $hook_name));
return $return;
}