id, $expand); if (!$this->is_readonly($cname, $form_name)) { $value = self::get_array($content, $form_name); $valid =& self::get_array($validated, $form_name, true); $valid = $value; if(!$this->attrs['tabs']) { return; } // Make sure additional tabs are processed foreach($this->attrs['tabs'] as $tab) { if($tab['id'] && $content[$tab['id']]) { /* This doesn't work for some reason $template = etemplate_widget_template::instance($tab['template']); $template->run('validate', array($tab['id'], $expand, $content, &$validated), true); */ $tab_valid =& self::get_array($validated, $tab['id'], true); $tab_valid = $content[$tab['id']]; } } $valid = $value; } } } etemplate_widget::registerWidget('etemplate_widget_tabbox', array('tabbox'));