setup.php 725 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. * Register this plugin with SquirrelMail
  13. *
  14. * @return void
  15. *
  16. */
  17. function squirrelmail_plugin_init_calendar() {
  18. global $squirrelmail_plugin_hooks;
  19. $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['calendar']
  20. = 'calendar';
  21. }
  22. /**
  23. * Add link to menu at top of content pane
  24. *
  25. * @return void
  26. *
  27. */
  28. function calendar() {
  29. include_once(SM_PATH . 'plugins/calendar/functions.php');
  30. return calendar_do();
  31. }