[+] CORE : added new hook actionModuleInstallBefore and actionModuleInstallAfter
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user