2017-01-31 10:14:33 +01:00

62 lines
1.1 KiB
PHP

<?php
/**
* @author Antadis
*/
if (!defined('_PS_VERSION_'))
exit;
class EmailValidation extends Module {
/**
*
* @param type $name
* @param Context $context
*/
public function __construct() {
$this->name = 'emailvalidation';
$this->tab = 'front_office_feature';
$this->version = '1.0.0';
$this->author = 'Antadis';
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('Email Validation');
$this->description = $this->l('Display email suggestions four your email fields');
$this->confirmUninstall = $this->l('Are you sure you want to uninstall this module?');
}
/**
*
* @return boolean
*/
public function install() {
return (
parent::install() &&
$this->registerHooks()
);
}
public function registerHooks(){
return (
$this->registerHook('displayFooter')
);
}
/**
*
* @return boolean
*/
public function uninstall() {
return parent::uninstall();
}
/**
* HOOKS
*/
public function hookDisplayFooter($params){
$this->context->controller->addJS(_PS_MODULE_DIR_.'emailvalidation/js/emailvalidation.js');
}
}