From: jerome mouneyrac Date: Mon, 9 Nov 2009 06:30:01 +0000 (+0000) Subject: webservice MDL-17135 display function descriptions into the function form X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=44610991bf11186a825c85009ebbdb2f1e78877c;p=moodle.git webservice MDL-17135 display function descriptions into the function form --- diff --git a/admin/webservice/forms.php b/admin/webservice/forms.php index 03d206f6d9..cd386b881c 100644 --- a/admin/webservice/forms.php +++ b/admin/webservice/forms.php @@ -110,6 +110,12 @@ class external_service_functions_form extends moodleform { $functions = $DB->get_records_select_menu('external_functions', $select, array('sid'=>$data['id']), 'name', 'id, name'); + //we add the descriptions to the functions + foreach ($functions as $functionid => $functionname) { + $function = external_function_info($functionname); //retrieve full function information (including the description) + $functions[$functionid] = $function->name.':'.$function->description; + } + $mform->addElement('searchableselector', 'fid', get_string('name'), $functions); $mform->addElement('hidden', 'id');