Add RFC 2231 support. Thanks to Piotr Pawlow. (#2501379)
[squirrelmail.git] / plugins / listcommands / setup.php
... / ...
CommitLineData
1<?php
2
3/**
4 * setup.php
5 *
6 * Implementation of RFC 2369 for SquirrelMail.
7 * When viewing a message from a mailinglist complying with this RFC,
8 * this plugin displays a menu which gives the user a choice of mailinglist
9 * commands such as (un)subscribe, help and list archives.
10 *
11 * @copyright &copy; 1999-2007 The SquirrelMail Project Team
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @version $Id$
14 * @package plugins
15 * @subpackage listcommands
16 */
17
18/**
19 * Initialize the listcommands plugin
20 */
21function squirrelmail_plugin_init_listcommands () {
22 global $squirrelmail_plugin_hooks;
23
24 $squirrelmail_plugin_hooks['template_construct_read_headers.tpl']['listcommands'] = 'plugin_listcommands_menu';
25 $squirrelmail_plugin_hooks['optpage_register_block']['listcommands'] = 'plugin_listcommands_optpage_register_block';
26
27}
28
29/**
30 * Main function added to read_body_header
31 */
32function plugin_listcommands_menu() {
33 include_once(SM_PATH . 'plugins/listcommands/functions.php');
34 return plugin_listcommands_menu_do();
35}
36
37
38/**
39 * Show mailing list management option section on options page
40 */
41function plugin_listcommands_optpage_register_block() {
42 include_once(SM_PATH . 'plugins/listcommands/functions.php');
43 plugin_listcommands_optpage_register_block_do();
44}