All this document.write stuff is overkill when we already have checkForJavascript...
[squirrelmail.git] / plugins / calendar / setup.php
1 <?php
2
3 /**
4 * Calendar plugin activation script
5 *
6 * @copyright &copy; 2002-2007 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 * @version $Id$
9 * @package plugins
10 * @subpackage calendar
11 */
12
13 /**
14 * Initialize the plugin
15 * @return void
16 */
17 function squirrelmail_plugin_init_calendar() {
18 global $squirrelmail_plugin_hooks;
19 $squirrelmail_plugin_hooks['menuline']['calendar'] = 'calendar';
20 }
21
22 /**
23 * Adds Calendar link to upper menu
24 * @return void
25 */
26 function calendar() {
27 displayInternalLink('plugins/calendar/calendar.php',_("Calendar"),'right');
28 echo "&nbsp;&nbsp;\n";
29 }