[*] PROJECT : New Module API (part 1)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9790 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -110,7 +110,7 @@ class AttributeCore extends ObjectModel
|
||||
|
||||
$return = parent::delete();
|
||||
if ($return)
|
||||
Module::hookExec('afterDeleteAttribute', array('id_attribute' => $this->id));
|
||||
Hook::exec('afterDeleteAttribute', array('id_attribute' => $this->id));
|
||||
return $return;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ class AttributeCore extends ObjectModel
|
||||
{
|
||||
$return = parent::update($null_values);
|
||||
if ($return)
|
||||
Module::hookExec('afterSaveAttribute', array('id_attribute' => $this->id));
|
||||
Hook::exec('afterSaveAttribute', array('id_attribute' => $this->id));
|
||||
return $return;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ class AttributeCore extends ObjectModel
|
||||
|
||||
$return = parent::add($autodate, $null_values);
|
||||
if ($return)
|
||||
Module::hookExec('afterSaveAttribute', array('id_attribute' => $this->id));
|
||||
Hook::exec('afterSaveAttribute', array('id_attribute' => $this->id));
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user