cmcv
I have the nspages plugin installed and after an update a while back, I had two nspages toolbar buttons.
Frankly, I'd prefer to have none, but I can live with 1 if I have to.
I have commented out the following line in lib/plugins/nspages/action.php:
[m]function register(Doku_Event_Handler $controller) {
# $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array());
$controller->register_hook('PLUGIN_POPULARITY_DATA_SETUP', 'AFTER', $this, 'usage_data');[/m]
This got rid of one of them, though it will obviously come back whenever the plugin is updated again. I am assuming something was changed between versions about how these buttons get created, and the old one was never removed when the change was made.
Where might I find the other button defined and how can I remove it?
Also, is there any way to enforce an approval process on plugins creating toolbar buttons?
cmcv
I'm not sure exactly what did it, but some combination of reinstalling, cache clearing, cache expiring, and action.php editing got rid of it.
It would be awesome if there was an admin page that let us enable/disable toolbar buttons per plugin.