webservice MDL-21351 add function page: use multiple searchable selector

This commit is contained in:
jerome mouneyrac 2010-01-20 02:44:19 +00:00
parent c59a67ab40
commit 3a17a7a352
4 changed files with 11 additions and 15 deletions

View file

@ -36,10 +36,6 @@ class MoodleQuickForm_searchableselector extends MoodleQuickForm_select{
function MoodleQuickForm_searchableselector($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
//return exception if the selector is set as multiple (TODO: implement multiple support)
if (!empty($attributes) && key_exists('multiple', $attributes)) {
throw new moodle_exception('searchableselectorcannotbemultiple');
}
//set size default to 12
if (empty($attributes) || empty($attributes['size'])) {
$attributes['size'] = 12;