| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * setup.php |
| 5 | * |
| 6 | * Copyright (c) 2002-2003 The SquirrelMail Project Team |
| 7 | * Licensed under the GNU GPL. For full terms see the file COPYING. |
| 8 | * |
| 9 | * Originally contrubuted by Michal Szczotka <michal@tuxy.org> |
| 10 | * |
| 11 | * init plugin into squirrelmail |
| 12 | * |
| 13 | * $Id$ |
| 14 | * @package plugins |
| 15 | * @subpackage calendar |
| 16 | */ |
| 17 | |
| 18 | /** |
| 19 | * Initialize the plugin |
| 20 | * @return void |
| 21 | */ |
| 22 | function squirrelmail_plugin_init_calendar() { |
| 23 | global $squirrelmail_plugin_hooks; |
| 24 | $squirrelmail_plugin_hooks['menuline']['calendar'] = 'calendar'; |
| 25 | } |
| 26 | |
| 27 | function calendar() { |
| 28 | /* Add Calendar link to upper menu */ |
| 29 | displayInternalLink('plugins/calendar/calendar.php',_("Calendar"),'right'); |
| 30 | echo " \n"; |
| 31 | } |
| 32 | |
| 33 | ?> |