[+] CORE : added new hook actionModuleInstallBefore and actionModuleInstallAfter

This commit is contained in:
vAugagneur
2013-03-20 17:28:51 +01:00
parent 04c3b54c38
commit 697f3fb71a
2 changed files with 8 additions and 1 deletions

View File

@@ -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;
}