X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Flistcommands%2Fsetup.php;h=4a05841c0844b84a19434283c3c67d86cb22ff60;hp=ac5b5a2705b13a52052dcd54aea835aeae27c3c1;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hpb=793566f084fbb48ab6ec356eb7d4bb76b139e719 diff --git a/plugins/listcommands/setup.php b/plugins/listcommands/setup.php index ac5b5a27..4a05841c 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-2018 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins * @subpackage listcommands @@ -22,12 +21,24 @@ 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'; + } +/** + * Main function added to read_body_header + */ 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(); +}