}
function CallHook ($hookname, $params) {
- global $use_webcalendarplugin,$G_SESSION,$HTML,$Language;
+ global $use_webcalendarplugin,$G_SESSION,$HTML;
if ($hookname == "usermenu") {
$text = $this->text; // this is what shows in the tab
if ($G_SESSION->usesPlugin("webcalendar")) {
echo "</td>";
echo "</tr>";
} elseif ($hookname == "user_personal_links") {
- global $Language;
// this displays the link in the user´s profile page to it´s personal webcalendar (if you want other sto access it, youll have to change the permissions in the index.php
$userid = $params['user_id'];
$user = user_get_object($userid);
<a href="/plugins/webcalendar/index.php?id=' . $userid . '&type=user&pluginname=' . $this->name . '">' . _('View Personal webcalendar') .'</a></p>';
}
} elseif ($hookname == "project_admin_plugins") {
- global $Language;
// this displays the link in the project admin options page to it´s webcalendar administration
$group_id = $params['group_id'];
$group = &group_get_object($group_id);