Index: formslib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/formslib.php,v retrieving revision 1.129.2.23 diff -u -r1.129.2.23 formslib.php --- formslib.php 26 Sep 2009 16:24:57 -0000 1.129.2.23 +++ formslib.php 9 Jan 2010 19:52:14 -0000 @@ -748,6 +748,13 @@ $mform->closeHeaderBefore('submitbutton'); } } + + /** + * Get one attribute value from the QuickForm + */ + function getAttribute($attrname) { + return $this->_form->getAttribute($attrname); + } } /**