/** * Display HTML * * This function works around the limitations of the moodle forms by printing html * directly. This allows for more custom designed forms. */ function display() { if ($this->_layout == 'custom') { print implode("\n", $this->_html); } else { parent::display(); } }