global $use_cvssyncmailplugin,$G_SESSION,$HTML;
$group_id=$params['group'];
if ($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 = &group_get_object($group_id);
- echo "<tr>";
- echo "<td>";
- echo ' <input type="CHECKBOX" name="use_cvssyncmailplugin" value="1" ';
- // CHECKED OR UNCHECKED?
- if ( $group->usesPlugin ( $this->name ) ) {
- echo "CHECKED";
+ if ($group->usesPlugin('scmcvs')) {
+ //Check if the group is active
+ // this code creates the checkbox in the project edit public info page to activate/deactivate the plugin
+ $group = &group_get_object($group_id);
+ echo "<tr>";
+ echo "<td>";
+ echo ' <input type="CHECKBOX" name="use_cvssyncmailplugin" value="1" ';
+ // CHECKED OR UNCHECKED?
+ if ( $group->usesPlugin ( $this->name ) ) {
+ echo "CHECKED";
+ }
+ echo "><br/>";
+ echo "</td>";
+ echo "<td>";
+ echo "<strong>Use ".$this->text." Plugin</strong>";
+ echo "</td>";
+ echo "</tr>";
}
- echo "><br/>";
- echo "</td>";
- echo "<td>";
- echo "<strong>Use ".$this->text." Plugin</strong>";
- 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 = &group_get_object($group_id);