From: tokul Date: Mon, 12 Apr 2004 07:08:34 +0000 (+0000) Subject: adding phpdoc blocks. @access private is used to hide functions that are X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=0fe5da5017c46edee1031a31b14369db8861e33c;hp=882acf90e4d2345143c3c2f7b1b9e18cdba61260;ds=sidebyside adding phpdoc blocks. @access private is used to hide functions that are used only by this plugin git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7085 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/fortune/setup.php b/plugins/fortune/setup.php index 7e67fc61..92646e71 100644 --- a/plugins/fortune/setup.php +++ b/plugins/fortune/setup.php @@ -3,22 +3,22 @@ /** * plugins/fortune/setup.php * - * Copyright (c) 1999-2004 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * * Original code contributed by paulm@spider.org * * Simple SquirrelMail WebMail Plugin that displays the output of * fortune above the message listing. * - * $Id$ + * @copyright (c) 1999-2004 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ * @package plugins * @subpackage fortune */ /** -* -*/ + * Init plugin + * @access private + */ function squirrelmail_plugin_init_fortune() { global $squirrelmail_plugin_hooks; @@ -28,6 +28,10 @@ function squirrelmail_plugin_init_fortune() { $squirrelmail_plugin_hooks['loading_prefs']['fortune'] = 'fortune_load'; } +/** + * Show fortune + * @access private + */ function fortune() { global $fortune_visible, $color; @@ -49,12 +53,20 @@ function fortune() { echo ''; } +/** + * Get fortune prefs + * @access private + */ function fortune_load() { global $username, $data_dir, $fortune_visible; $fortune_visible = getPref($data_dir, $username, 'fortune_visible'); } +/** + * Add fortune options + * @access private + */ function fortune_options() { global $fortune_visible; @@ -62,9 +74,13 @@ function fortune_options() { echo ' " . _("Show fortunes at top of mailbox") . "\n"; + echo " /> " . _("Show fortunes at top of mailbox") . "\n"; } +/** + * Save fortune prefs + * @access private + */ function fortune_save() { global $username,$data_dir; @@ -75,4 +91,4 @@ function fortune_save() { } } -?> +?> \ No newline at end of file