bebeboutik/modules/blockauth/blockauth.php
Srv Bebeboutik 6c0978166c add modules
2016-01-04 12:49:26 +01:00

28 lines
535 B
PHP
Executable File

<?php
class BlockAuth extends Module {
function __construct()
{
$this->name = 'blockauth';
$this->tab = 'front_office_features';
$this->version = '1.0';
parent::__construct();
$this->displayName = $this->l('Auth block');
$this->description = $this->l('Adds an authentication block on the homepage.');
}
function install() {
if (!parent::install())
return false;
return $this->registerHook('home');
}
function hookHome($params) {
return $this->display(__FILE__, 'blockauth.tpl');
}
}
?>