[evolvis-commits] r12507: No activation per project for online_help?==?UTF-8?Q? plugin↵
mirabilos at evolvis.org
mirabilos at evolvis.org
Mon Feb 28 01:41:45 CET 2011
Author: mirabilos
Date: 2011-02-28 01:41:45 +0100 (Mon, 28 Feb 2011)
New Revision: 12507
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/plugins/online_help/common/online_helpPlugin.class.php
Log:
No activation per project for online_help plugin
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/plugins/online_help/common/online_helpPlugin.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/plugins/online_help/common/online_helpPlugin.class.php 2011-02-28 00:41:43 UTC (rev 12506)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/plugins/online_help/common/online_helpPlugin.class.php 2011-02-28 00:41:45 UTC (rev 12507)
@@ -34,42 +34,12 @@
$this->Plugin() ;
$this->name = "online_help" ;
$this->text = "online_help!" ; // To show in the tabs, use...
- $this->hooks[] = "groupisactivecheckbox" ; // The "use ..." checkbox in editgroupinfo
- $this->hooks[] = "groupisactivecheckboxpost" ; //
$this->hooks[] = "headermenu"; // to show up in the admin page fro group
}
function CallHook ($hookname, $params) {
global $G_SESSION,$HTML;
- 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_id=$params['group'];
- $group = &group_get_object($group_id);
- echo "<tr>";
- echo "<td>";
- echo ' <input type="CHECKBOX" name="use_online_helpplugin" 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>";
- } 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_online_helpplugin = getStringFromRequest('use_online_helpplugin');
- if ( $use_online_helpplugin == 1 ) {
- $group->setPluginUse ( $this->name );
- } else {
- $group->setPluginUse ( $this->name, false );
- }
- } elseif ($hookname == "headermenu") {
+ if ($hookname == "headermenu") {
$guide = util_make_url('/plugins/online_help/');
$user_guide = array(
More information about the evolvis-commits
mailing list