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

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

ved Itamar Tzadok -
Antal besvarelser: 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. smiler

Gennemsnitsbedømmelse: -
I svar til Itamar Tzadok

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

ved 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

I svar til Rosario Carcò

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

ved 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. smiler