mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
webservice MDL-21351 add a help icon to required capability option (when create/edit a service)
This commit is contained in:
parent
bdbae764d9
commit
a7e2d6fef9
@ -63,7 +63,7 @@ class external_service_form extends moodleform {
|
||||
}
|
||||
|
||||
$mform->addElement('searchableselector', 'requiredcapability', get_string('requiredcapability', 'webservice'), $capabilitychoices);
|
||||
|
||||
$mform->setHelpButton('requiredcapability', array('requiredcapability', get_string('requiredcapability'), 'webservice'));
|
||||
/// display notification error if the current requiredcapability doesn't exist anymore
|
||||
if(empty($currentcapabilityexist)) {
|
||||
global $OUTPUT;
|
||||
|
5
lang/en_utf8/help/webservice/requiredcapability.html
Normal file
5
lang/en_utf8/help/webservice/requiredcapability.html
Normal file
@ -0,0 +1,5 @@
|
||||
<h1>Required capability</h1>
|
||||
|
||||
<p>The required capability is an option for administrator willing to add an optional checking to a service.
|
||||
Any users accessing the service will need to have the selected capability.</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user