X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Flistcommands%2Fsetup.php;h=adb836a67d03385df4dbb82deb766b9c1d74171c;hb=c4faef335b2362c81b8ebf026d4066c12d70536c;hp=5551efd78d9a637d53dec3aa5cf1576b7f9a41f6;hpb=f4f2d73f1deb90f9a701ad4826ecdca7fa9f817f;p=squirrelmail.git diff --git a/plugins/listcommands/setup.php b/plugins/listcommands/setup.php index 5551efd7..adb836a6 100644 --- a/plugins/listcommands/setup.php +++ b/plugins/listcommands/setup.php @@ -3,14 +3,13 @@ /** * setup.php * - * Copyright (c) 1999-2005 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * * Implementation of RFC 2369 for SquirrelMail. * When viewing a message from a mailinglist complying with this RFC, * this plugin displays a menu which gives the user a choice of mailinglist * commands such as (un)subscribe, help and list archives. * + * @copyright 1999-2020 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins * @subpackage listcommands @@ -22,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'; + } /** @@ -30,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(); +}