first commit
This commit is contained in:
38
modules/eicaptcha/upgrade/upgrade-2.1.0.php
Normal file
38
modules/eicaptcha/upgrade/upgrade-2.1.0.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* @author Hennes Hervé <contact@h-hennes.fr>
|
||||
* @copyright 2013-2021 Hennes Hervé
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* http://www.h-hennes.fr/blog/
|
||||
*/
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update module in version 0.2.1
|
||||
*
|
||||
* @param EiCaptcha $module
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function upgrade_module_2_1_0($module)
|
||||
{
|
||||
return $module->registerHook([
|
||||
'displayNewsletterRegistration',
|
||||
'actionNewsletterRegistrationBefore',
|
||||
'actionAdminControllerSetMedia',
|
||||
]);
|
||||
}
|
||||
Reference in New Issue
Block a user