X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Flistcommands%2Fsetup.php;h=1400c15df0a9e2018300877ad3e4481d7ba832b0;hb=0fcb12718ed2c817e8be5b0bb1eb947ffb93d423;hp=18dc40ca7c8772af23f0f97ba45124caf5051d83;hpb=2e58d6afaadfa12212ae31ad0bb7fea874648f22;p=squirrelmail.git diff --git a/plugins/listcommands/setup.php b/plugins/listcommands/setup.php index 18dc40ca..1400c15d 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-2006 The SquirrelMail Project Team + * @copyright 1999-2012 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -22,6 +22,8 @@ function squirrelmail_plugin_init_listcommands () { global $squirrelmail_plugin_hooks; $squirrelmail_plugin_hooks['template_construct_read_headers.tpl']['listcommands'] = 'plugin_listcommands_menu'; + $squirrelmail_plugin_hooks['optpage_register_block']['listcommands'] = 'plugin_listcommands_optpage_register_block'; + } /** @@ -31,3 +33,12 @@ function plugin_listcommands_menu() { include_once(SM_PATH . 'plugins/listcommands/functions.php'); return plugin_listcommands_menu_do(); } + + +/** + * 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(); +}