name = 'blocktext2'; $this->tab = 'advertising_marketing'; $this->version = 0.3; $this->author = 'Antadis'; $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l('Block text 2'); $this->description = $this->l('Adds a block to display a text.'); } public function install() { if (!parent::install()) return false; if (!$this->registerHook('leftColumn') OR !$this->registerHook('rightColumn')) return false; return true; } /** * Returns module content * * @param array $params Parameters * @return string Content */ function hookRightColumn($params) { return $this->display(__FILE__, 'blocktext.tpl'); } function hookLeftColumn($params) { return $this->hookRightColumn($params); } }