name = 'editorial'; $this->tab = 'Tools'; $this->version = '1.5'; parent::__construct(); $this->displayName = $this->l('Home text editor'); $this->description = $this->l('A text editor module for your homepage'); } function install() { if (!parent::install()) return false; return $this->registerHook('home'); } function putContent($xml_data, $key, $field, $forbidden, $section) { foreach ($forbidden AS $line) if ($key == $line) return 0; if (!preg_match('/^'.$section.'_/i', $key)) return 0; $key = preg_replace('/^'.$section.'_/i', '', $key); $field = htmlspecialchars($field); if (!$field) return 0; return ("\n".' <'.$key.'>'.$field.''.$key.'>'); } function getContent() { /* display the module name */ $this->_html = '