updateAttributes(array('onclick'=>'skipClientValidation = true; return true;')); } //end constructor function onQuickFormEvent($event, $arg, &$caller) { switch ($event) { case 'createElement': $className = get_class($this); $this->$className($arg[0], $arg[1], $arg[2]); $caller->_registerCancelButton($this->getName()); return true; break; } return parent::onQuickFormEvent($event, $arg, $caller); } // end func onQuickFormEvent function getFrozenHtml(){ return HTML_QuickForm_submit::getFrozenHtml(); } function freeze(){ return HTML_QuickForm_submit::freeze(); } // }}} } //end class MoodleQuickForm_cancel ?>