Michael RICOIS f46be40623 Init
2017-06-07 16:31:24 +02:00

26 lines
567 B
PHP

<?php
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_2_9_1($object)
{
$id_tab = (int)Tab::getIdFromClassName('AdminBlockCategories');
if (!$id_tab) {
$tab = new Tab();
$tab->active = 1;
$tab->class_name = 'AdminBlockCategories';
$tab->name = array();
foreach (Language::getLanguages(true) as $lang) {
$tab->name[$lang['id_lang']] = 'BlockCategories';
}
$tab->id_parent = -1;
$tab->module = $object->name;
return $tab->add();
}
return true;
}