Files
bio-concept-pharma/web/modules/netreviews/upgrade/upgrade-7.3.0.php
2019-11-17 19:14:07 +01:00

73 lines
2.3 KiB
PHP

<?php
/**
* 2012-2017 NetReviews
*
* 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.
*
* DISCLAIMER
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author NetReviews SAS <contact@avis-verifies.com>
* @copyright 2017 NetReviews SAS
* @license NetReviews
* @version Release: $Revision: 7.3.0
* @date 03/01/2017
* International Registered Trademark & Property of NetReviews SAS
*/
if (!defined('_PS_VERSION_')) {
exit;
}
/**
* Function used to update your module from previous versions to the version 7.3.0,
* Don't forget to create one file per version.
*/
function upgrade_module_7_3_0($module)
{
return upgradeHook_7_3_0($module) //Upgrade hook from previous versions to the version 7.3.0
&& upgradePsConfiguration_7_3_0() //Upgrade PS configuration from previous versions to the version 7.3.0
&& upgradeDatabase_7_3_0(); //Upgrade database from previous versions to the version 7.3.0
}
/**
* Function used to update your hook from previous versions to the version 7.3.0,
*/
function upgradeHook_7_3_0($module)
{
if (version_compare(_PS_VERSION_, '1.7', '>')) {
return $module->registerHook('displayProductPriceBlock')
&& $module->registerHook('displayProductButtons')
&& $module->registerHook('displayBeforeBodyClosingTag')
&& $module->registerHook('displayProductExtraContent');
} else {
return true;
}
}
/**
* Function used to update your database from previous versions to the version 7.3.0,
*/
function upgradeDatabase_7_3_0()
{
return true;
}
/**
* Function used to update your PS configuration from previous versions to the version 7.3.0,
*/
function upgradePsConfiguration_7_3_0()
{
return true;
}