/** * This function renders the form elements when adding a customcert element. * * @param mod_customcert_edit_element_form $mform the edit_form instance */ public function render_form_elements($mform) { // We want to define the width of the border. $mform->addElement('text', 'width', get_string('width', 'customcertelement_border'), array('size' => 10)); $mform->setType('width', PARAM_INT); $mform->addHelpButton('width', 'width', 'customcertelement_border'); // The only other thing to define is the colour we want the border to be. parent::render_form_element_colour($mform); }