Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
* @param Ps_accounts $module
*
* @return bool
*
* @throws Exception
* @throws Throwable
*/
function upgrade_module_7_0_0($module)
{
require __DIR__ . '/../src/enforce_autoload.php';
foreach ([
//'displayBackOfficeHeader',
//'actionAdminLoginControllerSetMedia',
'actionAdminControllerInitBefore',
'actionModuleInstallAfter',
] as $hook) {
$module->unregisterHook($hook);
}
$module->addCustomHooks($module->getCustomHooks());
$module->registerHook($module->getHooksToRegister());
// FIXME: this wont prevent from re-implanting override on reset of module
$uninstaller = new PrestaShop\Module\PsAccounts\Module\Uninstall($module, Db::getInstance());
$uninstaller->deleteAdminTab('AdminLogin');
$installer = new PrestaShop\Module\PsAccounts\Module\Install($module, Db::getInstance());
$installer->installInMenu();
return true;
}