28 lines
535 B
PHP
28 lines
535 B
PHP
|
<?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');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|