X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fcalendar%2Fsetup.php;h=71bf3ba6bbf257f06d110904638464f1327c9314;hb=6504ff6686e028cb54172670371a71e565451406;hp=ed27dea86450a73e00c641cf57c6bdc8518e93e6;hpb=d61a01d48fa9d58a7fdd5a99e7943b7dcaa94178;p=squirrelmail.git diff --git a/plugins/calendar/setup.php b/plugins/calendar/setup.php index ed27dea8..71bf3ba6 100644 --- a/plugins/calendar/setup.php +++ b/plugins/calendar/setup.php @@ -1,24 +1,42 @@ - * Licensed under the GNU GPL. For full terms see the file COPYING. - * - * init plugin into squirrelmail + +/** + * Calendar plugin activation script * + * @copyright 2002-2010 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ + * @package plugins + * @subpackage calendar */ - +/** + * Register this plugin with SquirrelMail + * + * @return void + * + */ function squirrelmail_plugin_init_calendar() { + global $squirrelmail_plugin_hooks; - $squirrelmail_plugin_hooks['menuline']['calendar'] = 'calendar'; + + $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['calendar'] + = 'calendar'; + } + +/** + * Add link to menu at top of content pane + * + * @return void + * + */ function calendar() { - //Add Calendar link to upper menu - displayInternalLink('plugins/calendar/calendar.php',_("Calendar"),'right'); - echo "  \n"; + + include_once(SM_PATH . 'plugins/calendar/functions.php'); + return calendar_do(); + } -?> \ No newline at end of file +