X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fcalendar%2Fsetup.php;h=956dcd5792c437502208ce383bd943456d34c420;hb=d671df04e4c7b9667dfd43b2236b8ffcffb5f6d7;hp=4b30c1b457d739b4ea5689ed521ed3f31c6368ba;hpb=ea5f4b8eaf805c4cc4e9533e87d057300a7fe666;p=squirrelmail.git diff --git a/plugins/calendar/setup.php b/plugins/calendar/setup.php index 4b30c1b4..956dcd57 100644 --- a/plugins/calendar/setup.php +++ b/plugins/calendar/setup.php @@ -1,33 +1,42 @@ - * - * init plugin into squirrelmail - * - * $Id$ + * @copyright © 2002-2007 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ * @package plugins * @subpackage calendar */ /** - * Initialize the plugin - * @return void - */ + * 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(); + } -?> +