* @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ if (!defined('_PS_VERSION_')) { exit; } function upgrade_module_3_0_0($module) { $result = true; $hook_to_remove_ids = [ Hook::getIdByName('displayPaymentEU'), Hook::getIdByName('payment'), ]; foreach ($hook_to_remove_ids as $hook_to_remove_id) { $result &= $module->unregisterHook((int)$hook_to_remove_id); } $result &= $module->registerHook('paymentOptions'); return $result; }