CTConfiguration::install PHP Метод

install() публичный Метод

Installs module to PrestaShop
public install ( ) : boolean
Результат boolean
    public function install()
    {
        parent::install();
        $hooksToUnhook = array(array('module' => 'blockcategories', 'hook' => 'footer'));
        foreach ($hooksToUnhook as $unhook) {
            $this->unhookModule($unhook['module'], $unhook['hook']);
        }
        $hooksToInstall = array('displayHeader', 'displayFooterProduct');
        foreach ($hooksToInstall as $hookName) {
            $this->registerHook($hookName);
        }
        // Disable scenes in config for faster loading, scenes are removed in category template
        Configuration::updateValue('PS_SCENE_FEATURE_ACTIVE', false);
        // Translatable configuration items
        foreach (Language::getLanguages(false) as $language) {
            $id_language = (int) $language['id_lang'];
            Configuration::updateValue('CT_CFG_COPYRIGHT_CONTENT', array($id_language => '© Acme Corporation 2016'));
        }
        return true;
    }