/**
* Fortune plugin setup script
*
- * @copyright © 1999-2005 The SquirrelMail Project Team
+ * @copyright 1999-2011 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage fortune
*/
-/**
- * If SM_PATH isn't defined, define it.
- * @ignore
- */
-if (!defined('SM_PATH')) {
- define('SM_PATH','../../');
-}
-
/**
* Init plugin
* @access private
function squirrelmail_plugin_init_fortune() {
global $squirrelmail_plugin_hooks;
- $squirrelmail_plugin_hooks['mailbox_index_before']['fortune'] = 'fortune';
+ $squirrelmail_plugin_hooks['template_construct_message_list.tpl']['fortune'] = 'fortune';
$squirrelmail_plugin_hooks['loading_prefs']['fortune'] = 'fortune_load';
$squirrelmail_plugin_hooks['optpage_loadhook_display']['fortune'] = 'fortune_options';
}
*/
function fortune() {
include_once(SM_PATH . 'plugins/fortune/functions.php');
- fortune_function();
+ return fortune_function();
}
/**
include_once(SM_PATH . 'plugins/fortune/functions.php');
fortune_function_load();
}
-?>
\ No newline at end of file