-
Bug
-
Resolution: Fixed
-
Minor
-
3.2, 3.5.9, 3.6.7, 3.7.3, 3.8
-
MOODLE_32_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
master_
MDL-56886 -
Due to the callback for local plugins (namely local_PUGINNAME_extend_navigation) only being called in global_navigation::initialise() and not in global_navigation_for_ajax::initialise() it's not possible for local plugins to extend for example course branches with nodes - except for the current course.
The current course is handled via global_navigation class, other courses via global_navigation_for_ajax.
In addition: Having callback in `global_navigation_for_ajax` class allows to modify navigation elements for the current course received by ajax call (received when user expands collapsed navigation element).