X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fcalendar%2Fsetup.php;h=7c2aa0e998fc8d5a1046b32c5804a34b52576017;hp=0353361c438775d7fa91efbae20c06771eaf0370;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hpb=76911253eb850bacde3d86c8cb7b4af072e67ebe diff --git a/plugins/calendar/setup.php b/plugins/calendar/setup.php index 0353361c..7c2aa0e9 100644 --- a/plugins/calendar/setup.php +++ b/plugins/calendar/setup.php @@ -1,27 +1,42 @@ - * - * init plugin into squirrelmail - * - * $Id$ + * @copyright 2002-2018 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(); + } -?> +