(finally)fix message_details plugin for new plugin infrastructure, and as
[squirrelmail.git] / plugins / mail_fetch / setup.php
index b1b7e40fa40eae11acb4bce9f49c0520e82bd32c..293e6319471d2c0c31edb901b551f721a29beff6 100644 (file)
@@ -1,20 +1,17 @@
 <?php
+
 /**
  * mail_fetch/setup.php
  *
- * Copyright (c) 1999-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * Setup of the mailfetch plugin.
  *
+ * @copyright &copy; 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage mail_fetch
  */
 
-/** @ignore */
-if (! defined('SM_PATH')) define('SM_PATH','../../');
-
 /**
  * Initialize the plugin
  */
@@ -22,7 +19,6 @@ function squirrelmail_plugin_init_mail_fetch() {
     global $squirrelmail_plugin_hooks;
 
     $squirrelmail_plugin_hooks['menuline']['mail_fetch'] = 'mail_fetch_link';
-    $squirrelmail_plugin_hooks['loading_prefs']['mail_fetch'] = 'mail_fetch_load_pref';
     $squirrelmail_plugin_hooks['login_verified']['mail_fetch'] = 'mail_fetch_setnew';
     $squirrelmail_plugin_hooks['left_main_before']['mail_fetch'] = 'mail_fetch_login';
     $squirrelmail_plugin_hooks['optpage_register_block']['mail_fetch'] = 'mailfetch_optpage_register_block';
@@ -38,15 +34,6 @@ function mail_fetch_link() {
     echo '&nbsp;&nbsp;';
 }
 
-/**
- * load preferences
- * @private
- */
-function mail_fetch_load_pref() {
-    include_once(SM_PATH . 'plugins/mail_fetch/functions.php');
-    mail_fetch_load_pref_function();
-}
-
 /**
  * Fetch pop3 mails on login.
  * @private
@@ -83,4 +70,3 @@ function mail_fetch_folderact($args) {
     include_once (SM_PATH . 'plugins/mail_fetch/functions.php');
     mail_fetch_folderact_function($args);
 }
-?>
\ No newline at end of file