projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Alignment fix
[squirrelmail.git]
/
plugins
/
calendar
/
setup.php
diff --git
a/plugins/calendar/setup.php
b/plugins/calendar/setup.php
index 83aab7ad398d63059d0c3e7cafa3e0d0c6cde63f..69877c98397860841232477d538204c2328239c4 100644
(file)
--- a/
plugins/calendar/setup.php
+++ b/
plugins/calendar/setup.php
@@
-3,7
+3,7
@@
/**
* Calendar plugin activation script
*
/**
* Calendar plugin activation script
*
- * @copyright
© 2002-2006
The SquirrelMail Project Team
+ * @copyright
2002-2012
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
@@
-11,19
+11,32
@@
*/
/**
*/
/**
- * Initialize the plugin
- * @return void
- */
+ * Register this plugin with SquirrelMail
+ *
+ * @return void
+ *
+ */
function squirrelmail_plugin_init_calendar() {
function squirrelmail_plugin_init_calendar() {
+
global $squirrelmail_plugin_hooks;
global $squirrelmail_plugin_hooks;
- $squirrelmail_plugin_hooks['menuline']['calendar'] = 'calendar';
+
+ $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['calendar']
+ = 'calendar';
+
}
}
+
/**
/**
- * Adds Calendar link to upper menu
- * @return void
- */
+ * Add link to menu at top of content pane
+ *
+ * @return void
+ *
+ */
function calendar() {
function calendar() {
- displayInternalLink('plugins/calendar/calendar.php',_("Calendar"),'right');
- echo " \n";
+
+ include_once(SM_PATH . 'plugins/calendar/functions.php');
+ return calendar_do();
+
}
}
+
+