protected function unit_group($mform) {
        $grouparray = array();
        $grouparray[] = $mform->createElement('text', 'unit', get_string('unit', 'qtype_numerical'), array('size'=>10));
        $grouparray[] = $mform->createElement('float', 'multiplier',
                get_string('multiplier', 'qtype_numerical'), array('size'=>10));

        return $grouparray;
    }
protected function unit_group($mform) {
        $grouparray = array();
        $grouparray[] = $mform->createElement('text', 'unit', get_string('unit', 'qtype_numerical'), array('size'=>10));
        $grouparray[] = $mform->createElement('float', 'multiplier',
                get_string('multiplier', 'qtype_numerical'), array('size'=>10));

        return $grouparray;
    }
protected function unit_group ( $ mform ) { $ grouparray = array ( ) ; $ grouparray [ ] = $ mform -> createElement ( 'text' , 'unit' , get_string ( 'unit' , 'qtype_numerical' ) , array ( 'size' => 10 ) ) ; $ grouparray [ ] = $ mform -> createElement ( 'float' , 'multiplier' , get_string ( 'multiplier' , 'qtype_numerical' ) , array ( 'size' => 10 ) ) ; return $ grouparray ; }
Get the form fields needed to edit one unit.
@param MoodleQuickForm $mform the form being built.
@return array of form fields.
Get the form fields needed to edit one unit .