HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: graficav (1037)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/graficav/holatimbres.cl/modules/blockcustomerprivacy/upgrade/install-2.0.0.php
<?php

if (!defined('_PS_VERSION_'))
	exit;

function upgrade_module_2_0_0($object)
{
	$return = true;

	$return &= $object->registerHook('displayCustomerIdentityForm');
	$return &= $object->unregisterHook('header');

	$langs = Language::getLanguages(false);
	$old_messages = array();
	foreach ($langs as $l)
		$old_messages[$l['id_lang']] = Configuration::get('CUSTPRIV_MESSAGE', $l['id_lang']);

	Configuration::updateValue('CUSTPRIV_MESSAGE', $old_messages);
	Configuration::updateValue('CUSTPRIV_MESSAGE', $old_messages);

	return $return;
}