Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.7.1
-
Fix Version/s: 3.8
-
Component/s: Web Services
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_37_STABLE
-
Fixed Branches:MOODLE_38_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-66229-master -
Pull Master Diff URL:
Description
Right now, the only way to dynamically disable a plugin in the app is to throw a PHP exception in the init function. Using exceptions as normal code control flow isn't recommended and it's causing us some problems in the app since we can't determine if the plugin failed or it's disabled.
We could add a new return param called "disabled". If we receive a true (or 1) in this field when calling the init function, the app will disabled that handler.
Attachments
Issue Links
- blocks
-
MOBILE-3102 Make CoreMainMenuDelegate handlers optional without throwing an exception
-
- Closed
-