David Harris wrote:
[[ I'm happy to work with a consultant to answer this and other questions, as per my previous email. However, Thomas suggested I send some questions to the dev list, so I'm doing that. ]]
I see when you define a button from a plugin, you can give it a command:
$this->add_button(array( 'command' => 'plugin.markasjunk', 'imagepas' => $skin_path.'/junk_pas.png', 'imageact' => $skin_path.'/junk_act.png', 'title' => 'markasjunk.buttontitle'), 'toolbar'); }
This is the correct way to add a button server side to the toolbar. What's missing is the registering of the command to the client app. This is done in Javascript using rcmail.register_command('plugin.markasjunk', ...);
See the markasjunk.js script file from the markasjunk plugin.
~Thomas _______________________________________________ List info: http://lists.roundcube.net/dev/