toutpratique/modules/cms_extrafields/cms_extrafields.php
Thibault GUILLAUME 83dadeacbb divers
2015-08-21 14:40:48 +02:00

46 lines
1.0 KiB
PHP

<?php
if (!defined('_CAN_LOAD_FILES_'))
exit;
require_once(dirname(__FILE__).'/classes/CmsPsExtraFieldsGroup.php');
require_once(dirname(__FILE__).'/classes/CmsPsExtraFieldsValue.php');
class Cms_ExtraFields extends Module
{
const TACHES = 1;
const SUPPORT = 2;
public function __construct()
{
$this->name = 'cms_extrafields';
$this->tab = 'front_office_features';
$this->version = '1.0';
$this->author = 'Antadis';
$this->need_instance = 0;
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Add extra fields for CMS ANTADIS');
$this->description = $this->l('Manage your extra fields in CMS Antadis');
$this->secure_key = Tools::encrypt($this->name);
$this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_);
}
public function install()
{
if (Shop::isFeatureActive())
Shop::setContext(Shop::CONTEXT_ALL);
if (!parent::install()
|| !$this->createTables()
)
return false;
}
public function createTables (){
return true;
}
}