X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Flistcommands%2Fsetup.php;h=b95e2056c866499e9497361f20c4295352a026bb;hb=ae5dddc065f9501f267c4edaf68a066835da915f;hp=a5c5d859f53d1fd393b37b6b0b6b4a3ed66fae71;hpb=4b4abf93a9624311afef0c385023724ee46a2b60;p=squirrelmail.git diff --git a/plugins/listcommands/setup.php b/plugins/listcommands/setup.php index a5c5d859..b95e2056 100644 --- a/plugins/listcommands/setup.php +++ b/plugins/listcommands/setup.php @@ -8,7 +8,7 @@ * this plugin displays a menu which gives the user a choice of mailinglist * commands such as (un)subscribe, help and list archives. * - * @copyright © 1999-2005 The SquirrelMail Project Team + * @copyright 1999-2011 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -21,7 +21,9 @@ function squirrelmail_plugin_init_listcommands () { global $squirrelmail_plugin_hooks; - $squirrelmail_plugin_hooks['read_body_header']['listcommands'] = 'plugin_listcommands_menu'; + $squirrelmail_plugin_hooks['template_construct_read_headers.tpl']['listcommands'] = 'plugin_listcommands_menu'; + $squirrelmail_plugin_hooks['optpage_register_block']['listcommands'] = 'plugin_listcommands_optpage_register_block'; + } /** @@ -29,7 +31,14 @@ function squirrelmail_plugin_init_listcommands () { */ function plugin_listcommands_menu() { include_once(SM_PATH . 'plugins/listcommands/functions.php'); - plugin_listcommands_menu_do(); + return plugin_listcommands_menu_do(); } -?> \ No newline at end of file + +/** + * Show mailing list management option section on options page + */ +function plugin_listcommands_optpage_register_block() { + include_once(SM_PATH . 'plugins/listcommands/functions.php'); + plugin_listcommands_optpage_register_block_do(); +}