* @copyright 2007-2016 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_1_5_1($module) { if (Hook::getIdByName('displayPaymentEu')) { return true; } $new_hook = new Hook(); $new_hook->name = 'displayPaymentEu'; $new_hook->title = 'Display EU payment options (helper)'; $new_hook->description = 'Hook to display payment options'; $new_hook->position = true; return (bool)$new_hook->add() && (bool)$module->registerModulesBackwardCompatHook(); }