Add class attribute to template
[squirrelmail.git] / plugins / abook_take / setup.php
CommitLineData
e8b140ab 1<?php
2
b755a6b1 3/**
4 * setup.php
5 *
b755a6b1 6 * Address Take -- steals addresses from incoming email messages. Searches
7 * the To, Cc, From and Reply-To headers, also searches the body of the
8 * message.
9 *
47ccfad4 10 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
4b4abf93 11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
4f51df66 12 * @version $Id$
ea5f4b8e 13 * @package plugins
14 * @subpackage abook_take
b755a6b1 15 */
16
d55c0f66 17
ea5f4b8e 18/**
19 * Initialize the plugin
20 */
e8b140ab 21function squirrelmail_plugin_init_abook_take()
22{
b755a6b1 23 global $squirrelmail_plugin_hooks;
e8b140ab 24
70e61af6 25 $squirrelmail_plugin_hooks['read_body_bottom']['abook_take'] = 'abook_take_read_body_bottom';
26 $squirrelmail_plugin_hooks['loading_prefs']['abook_take'] = 'abook_take_loading_prefs';
27 $squirrelmail_plugin_hooks['options_display_inside']['abook_take'] = 'abook_take_options_display_inside';
28 $squirrelmail_plugin_hooks['options_display_save']['abook_take'] = 'abook_take_options_display_save';
e8b140ab 29}
30
70e61af6 31function abook_take_read_body_bottom() {
32 include_once(SM_PATH . 'plugins/abook_take/functions.php');
b755a6b1 33
70e61af6 34 abook_take_read();
e8b140ab 35}
36
70e61af6 37function abook_take_loading_prefs() {
38 include_once(SM_PATH . 'plugins/abook_take/functions.php');
e8b140ab 39
70e61af6 40 abook_take_pref();
e8b140ab 41}
42
70e61af6 43function abook_take_options_display_inside() {
44 include_once(SM_PATH . 'plugins/abook_take/functions.php');
b755a6b1 45
70e61af6 46 abook_take_options();
e8b140ab 47}
48
70e61af6 49function abook_take_options_display_save() {
50 include_once(SM_PATH . 'plugins/abook_take/functions.php');
e8b140ab 51
70e61af6 52 abook_take_save();
e8b140ab 53}