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

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

por Itamar Tzadok -
Número de respostas: 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. sorriso

Média das avaliações:  -
Em resposta à Itamar Tzadok

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

por 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

Em resposta à Rosario Carcò

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

por 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. sorriso