*/
function squirrelmail_plugin_init_squirrelspell() {
global $squirrelmail_plugin_hooks;
- $squirrelmail_plugin_hooks['compose_button_row']['squirrelspell'] =
+ $squirrelmail_plugin_hooks['template_construct_compose_buttons.tpl']['squirrelspell'] =
'squirrelspell_setup';
$squirrelmail_plugin_hooks['optpage_register_block']['squirrelspell'] =
'squirrelspell_optpage_register_block';
*/
function squirrelspell_setup() {
include_once(SM_PATH . 'plugins/squirrelspell/sqspell_functions.php');
- squirrelspell_setup_function();
+ return squirrelspell_setup_function();
}
/**
* use document.write() so the "Check Spelling" button is not
* displayed if js is off in the browser.
*/
- echo "<script type=\"text/javascript\">\n".
+ $output = "<script type=\"text/javascript\">\n".
"<!--\n".
'document.write("<input type=\"button\" value=\"'.
_("Check Spelling").
'resizable=yes\')\" />");' . "\n".
"//-->\n".
"</script>\n";
+ return array('compose_button_row' => $output);
}
}