setup.php 654 B

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