gforge-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-devel] [ gforge-Patches-395 ] Plugin:groupisactivecheckboxpost a


From: noreply
Subject: [Gforge-devel] [ gforge-Patches-395 ] Plugin:groupisactivecheckboxpost and groupisactivecheckbox hooks
Date: Wed, 11 Jun 2003 20:32:44 -0500

Patches item #395, was opened at 2003-06-12 03:32
You can respond by visiting: 
http://gforge.org/tracker/?func=detail&atid=106&aid=395&group_id=1

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Francisco Gimeno (kikov)
Assigned to: Nobody (None)
Summary: Plugin:groupisactivecheckboxpost and groupisactivecheckbox hooks

Initial Comment:
These are two hooks for supporting the 
project/admin/editgroupinfo.php "uses" checkbox. 
 
groupisactivecheckboxpost is launched when post 
groupisactivecheckbox to render the checkbox. 
 
Using them is really easy with the $group->usesPlugin and 
$group->setPluginUse methods... 
 
An example of this in the Plugin.class 
----------- 
if ($hookname == 'groupisactivecheckbox') { 
                        //CheckBox to the editgroupinfo page 
 
                        echo '<tr>'; 
                        echo '<td>'; 
                        echo ' <input type="CHECKBOX" 
name="use_'.$this->name.'" value="1" '; 
                        // CHECKED OR UNCHECKED? 
                        if ( $group->usesPlugin ( $this->name ) ) { 
                            echo "CHECKED"; 
                        } 
                        echo '>'; 
                        echo '</td>'; 
                        echo '<td>'; 
                        echo '<strong>Use '.$this->tabtext.'</strong>'; 
                        echo '</td>'; 
                        echo '</tr>'; 
} elseif ($hookname == 'groupisactivecheckboxpost') { 
 
                        if ( $use_wwwcvsmodule == 1 ) { 
 
                            $group->setPluginUse ( $this->name ); 
                        } 
                        else { 
                            $group->setPluginUse ( $this->name, false ); 
                        } 
 
 
} 
----- 
 
 

----------------------------------------------------------------------

You can respond by visiting: 
http://gforge.org/tracker/?func=detail&atid=106&aid=395&group_id=1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]