[*] PROJECT : New Module API (part 1)

This commit is contained in:
fSerny
2011-11-02 10:49:01 +00:00
parent 7f830c2f4e
commit d5e265f75e
53 changed files with 640 additions and 339 deletions
+2 -2
View File
@@ -244,7 +244,7 @@ if (Tools::isSubmit('ajaxCategoriesPositions'))
{
if (isset($position) && $category->updatePosition($way, $position))
{
Module::hookExec('categoryUpdate');
Hook::exec('categoryUpdate');
die(true);
}
else
@@ -605,7 +605,7 @@ if (Tools::isSubmit('getHookableModuleList'))
include_once(_PS_MODULE_DIR_.$module['name'].'/'.$module['name'].'.php');
$mod = new $module['name']();
if ($mod->isHookableOn($hook_name))
$hookableModulesList[] = array('id' => (int)$mod->id, 'name' => $mod->displayName, 'display' => Module::hookExec($hook_name, array(), (int)$mod->id));
$hookableModulesList[] = array('id' => (int)$mod->id, 'name' => $mod->displayName, 'display' => Hook::exec($hook_name, array(), (int)$mod->id));
}
}
die(Tools::jsonEncode($hookableModulesList));