diff --git a/classes/module/Module.php b/classes/module/Module.php index 41a3c9c80..9608cf3a3 100644 --- a/classes/module/Module.php +++ b/classes/module/Module.php @@ -187,6 +187,7 @@ abstract class ModuleCore */ public function install() { + Hook::exec('actionModuleInstallBefore', array('object' => $this)); // Check module name validation if (!Validate::isModuleName($this->name)) { @@ -265,7 +266,7 @@ abstract class ModuleCore // Adding Restrictions for client groups Group::addRestrictionsForModule($this->id, Shop::getShops(true, null, true)); - + Hook::exec('actionModuleInstallAfter', array('object' => $this)); return true; } diff --git a/install-dev/data/xml/hook.xml b/install-dev/data/xml/hook.xml index abeb6527e..1139431f2 100644 --- a/install-dev/data/xml/hook.xml +++ b/install-dev/data/xml/hook.xml @@ -265,5 +265,11 @@ displayMyAccountBlockMy account blockThis hook displays extra information within the 'my account' block" + + actionModuleInstallBeforeactionModuleInstallBefore + + + actionModuleInstallAfteractionModuleInstallAfter +