function CallHook ($hookname, $params) {
global $use_helloworldplugin,$G_SESSION,$HTML;
- $group_id=$params['group'];
if ($hookname == "usermenu") {
$text = $this->text; // this is what shows in the tab
if ($G_SESSION->usesPlugin("helloworld")) {
array ('/plugins/helloworld/index.php' . $param ));
}
} elseif ($hookname == "groupmenu") {
+ $group_id=$params['group'];
$project = &group_get_object($group_id);
if (!$project || !is_object($project)) {
return;
} elseif ($hookname == "groupisactivecheckbox") {
//Check if the group is active
// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
+ $group_id=$params['group'];
$group = &group_get_object($group_id);
echo "<tr>";
echo "<td>";
echo "</tr>";
} elseif ($hookname == "groupisactivecheckboxpost") {
// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
+ $group_id=$params['group'];
$group = &group_get_object($group_id);
$use_helloworldplugin = getStringFromRequest('use_helloworldplugin');
if ( $use_helloworldplugin == 1 ) {
function CallHook ($hookname, $params) {
global $use_mantisplugin,$G_SESSION,$HTML;
- $group_id=$params['group'];
if ($hookname == "usermenu") {
$text = $this->text; // this is what shows in the tab
if ($G_SESSION->usesPlugin("mantis")) {
array ('/plugins/mantis/index.php' . $param ));
}
} elseif ($hookname == "groupmenu") {
+ $group_id=$params['group'];
$project = &group_get_object($group_id);
if (!$project || !is_object($project)) {
return;
} elseif ($hookname == "groupisactivecheckbox") {
//Check if the group is active
// this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
+ $group_id=$params['group'];
$group = &group_get_object($group_id);
echo "<tr>";
echo "<td>";
echo "</tr>";
} elseif ($hookname == "groupisactivecheckboxpost") {
// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
+ $group_id=$params['group'];
$group = &group_get_object($group_id);
if ( $use_mantisplugin == 1 ) {
$group->setPluginUse ( $this->name );
function CallHook ($hookname, $params) {
global $use_projects_hierarchyplugin,$G_SESSION,$HTML,$Language;
- $group_id=$params['group'];
if ($hookname == "usermenu") {
$text = $this->text; // this is what shows in the tab
if ($G_SESSION->usesPlugin("projects_hierarchy")) {
array ('/plugins/projects_hierarchy/index.php' . $param ));
}
} elseif ($hookname == "groupmenu") {
+ $group_id=$params['group'];
$project = &group_get_object($group_id);
if (!$project || !is_object($project)) {
return;
//Check if the group is active
} elseif ($hookname == "groupisactivecheckboxpost") {
// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
+ $group_id=$params['group'];
$group = &group_get_object($group_id);
$use_projects_hierarchyplugin = getStringFromRequest('use_projects_hierarchyplugin');
if ( $use_projects_hierarchyplugin == 1 ) {
function CallHook ($hookname, $params) {
global $use_quota_managementplugin,$G_SESSION,$HTML,$Language;
- $group_id=$params['group'];
if ($hookname == "usermenu") {
$text = $this->text; // this is what shows in the tab
if ($G_SESSION->usesPlugin("quota_management")) {
array ('/plugins/quota_management/index.php' . $param ));
}
} elseif ($hookname == "groupmenu") {
+ $group_id=$params['group'];
$project = &group_get_object($group_id);
if (!$project || !is_object($project)) {
return;
//Check if the group is active
} elseif ($hookname == "groupisactivecheckboxpost") {
// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
+ $group_id=$params['group'];
$group = &group_get_object($group_id);
$use_quota_managementplugin = getStringFromRequest('use_quota_managementplugin');
if ( $use_quota_managementplugin == 1 ) {
}
elseif ($hookname == "quota_link_project_admin") {
// www/project/admin/project_admin_utils.php line 99
+ $group_id=$params['group'];
$links[] = '/plugins/quota_management/quota.php?group_id='.$group_id;
}
}
function CallHook ($hookname, $params) {
global $use_webcalendarplugin,$G_SESSION,$HTML,$Language;
- $group_id=$params['group'];
if ($hookname == "usermenu") {
$text = $this->text; // this is what shows in the tab
if ($G_SESSION->usesPlugin("webcalendar")) {
array ('/plugins/webcalendar/index.php' . $param ));
}
} elseif ($hookname == "groupmenu") {
+ $group_id=$params['group'];
$project = &group_get_object($group_id);
if (!$project || !is_object($project)) {
return;
///Check if the group is active
} elseif ($hookname == "groupisactivecheckboxpost") {
// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
+ $group_id=$params['group'];
$group = &group_get_object($group_id);
$use_webcalendarplugin = getStringFromRequest('use_webcalendarplugin');
if ( $use_webcalendarplugin == 1 ) {