MDL-47206 core: Allow tool plugins to run tasks

This issue is a part of the MDL-47194 Task.
This issue is a part of the MDL-39707 Epic.
This commit is contained in:
Andrew Nicols 2014-09-11 08:46:52 +08:00
parent 457f818026
commit 9c7274e25f

View File

@ -36,6 +36,15 @@ class tool extends base {
return true;
}
/**
* Tools cannot be disabled.
*
* @return boolean
*/
public function is_enabled() {
return true;
}
/**
* Return URL used for management of plugins of this type.
* @return moodle_url