Why local plugins do not have API for extending settings navigation?

Why local plugins do not have API for extending settings navigation?

by Itamar Tzadok -
Number of replies: 2

The local plugin API seem to offer only

plugin_extends_navigation(global_navigation $navigation)

but not something like

plugin_extends_settings_navigation(settings_navigation $navigation)

Why not? Is there any good reason to prevent local plugins from extending the settings navigation?

I've managed to work around by retrieving the settings_navigation from $PAGE but I get it by key and assume 'usercurrentsettings' which may not hold for all cases.

Any suggestion would be appreciated. smile

Average of ratings: -
In reply to Itamar Tzadok

Re: Why local plugins do not have API for extending settings navigation?

by Rosario Carcò -

I am not sure this could help (us all) to understand it better:

http://moodle.org/mod/forum/discuss.php?d=170325

Rosario

In reply to Rosario Carcò

Re: Why local plugins do not have API for extending settings navigation?

by Itamar Tzadok -

The referred discussion is an example of using the existing API. It doesn't mention or explain why there is no API for extending the settings navigation. smile