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

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

par Itamar Tzadok,
Nombre de réponses : 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. sourire

Moyenne des évaluations  -
En réponse à Itamar Tzadok

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

par 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

En réponse à Rosario Carcò

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

par 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. sourire