* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ if (!defined('_PS_VERSION_')) { exit; } function upgrade_module_1_1_0($object) { $result = true; if (!$object->isRegisteredInHook('actionCustomerAccountAdd')) { $result &= $object->registerHook('actionCustomerAccountAdd'); } if ($object->isRegisteredInHook('validateCustomerFormFields')) { $result &= $object->unregisterHook('validateCustomerFormFields'); } return $result; }