// Rename correctly all hooks
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12006 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+3
-3
@@ -114,7 +114,7 @@ class FeatureCore extends ObjectModel
|
||||
$this->position = Feature::getHigherPosition() + 1;
|
||||
|
||||
$return = parent::add($autodate, true);
|
||||
Hook::exec('afterSaveFeature', array('id_feature' => $this->id));
|
||||
Hook::exec('actionFeatureSave', array('id_feature' => $this->id));
|
||||
return $return;
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ class FeatureCore extends ObjectModel
|
||||
|
||||
$return = parent::delete();
|
||||
if ($return)
|
||||
Hook::exec('afterDeleteFeature', array('id_feature' => $this->id));
|
||||
Hook::exec('actionFeatureDelete', array('id_feature' => $this->id));
|
||||
|
||||
/* Reinitializing position */
|
||||
$this->cleanPositions();
|
||||
@@ -169,7 +169,7 @@ class FeatureCore extends ObjectModel
|
||||
'`'.$this->def['primary'].'` = '.(int)$this->id.' AND `id_lang` = '.(int)$field['id_lang']
|
||||
);
|
||||
}
|
||||
Hook::exec('afterSaveFeature', array('id_feature' => $this->id));
|
||||
Hook::exec('actionFeatureSave', array('id_feature' => $this->id));
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user