Refactor hyperlink template code
[squirrelmail.git] / plugins / listcommands / setup.php
CommitLineData
73ee43b1 1<?php
519f07d7 2
3/**
4 * setup.php
5 *
73ee43b1 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 *
47ccfad4 11 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
4b4abf93 12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
793566f0 13 * @version $Id$
ea5f4b8e 14 * @package plugins
15 * @subpackage listcommands
73ee43b1 16 */
519f07d7 17
ea5f4b8e 18/**
19 * Initialize the listcommands plugin
20 */
519f07d7 21function squirrelmail_plugin_init_listcommands () {
73ee43b1 22 global $squirrelmail_plugin_hooks;
23
2e58d6af 24 $squirrelmail_plugin_hooks['template_construct_read_headers.tpl']['listcommands'] = 'plugin_listcommands_menu';
73ee43b1 25}
26
f4f2d73f 27/**
28 * Main function added to read_body_header
29 */
d54c9a9c 30function plugin_listcommands_menu() {
793566f0 31 include_once(SM_PATH . 'plugins/listcommands/functions.php');
2e58d6af 32 return plugin_listcommands_menu_do();
050722c4 33}