/** * @todo lang and template classes are used! */ public static function _spoiler($action, $attributes, $content, $params, &$node_object) { if ($action == 'validate') { return true; } else { return $content; $lang = new Lang('other'); $tpl = new Template('bbcode_spoiler', $lang, 4); $tpl->setParams(array('CONTENT' => $content)); return $tpl->getPart(0, true); } }