function MoodleQuickForm_searchableselector($elementName = null, $elementLabel = null, $options = null, $attributes = null) { //set size default to 12 if (empty($attributes) || empty($attributes['size'])) { $attributes['size'] = 12; } parent::MoodleQuickForm_select($elementName, $elementLabel, $options, $attributes); }