- $group = group_get_object($params['group']);
- $flag = strtolower('use_'.$this->name);
- echo "<tr>";
- echo "<td>";
- echo ' <input type="checkbox" name="'.$flag.'" value="1" ';
- // checked or unchecked?
- if ( $group->usesPlugin ( $this->name ) ) {
- echo "checked=\"checked\"";
+ $display = 1;
+ $title = _('current plugin status is:').' '.forge_get_config('plugin_status', $this->name);
+ $imgStatus = 'plugin_status_valid.png';
+ if ( forge_get_config('plugin_status',$this->name) !== 'valid' ) {
+ $display = 0;
+ $imgStatus = 'plugin_status_broken.png';
+ }
+ if ( forge_get_config('installation_environment') === 'development' ) {
+ $display = 1;
+ }
+ if ($display) {
+ $group = group_get_object($params['group']);
+ $flag = strtolower('use_'.$this->name);
+ echo '<tr>';
+ echo '<td>';
+ echo ' <input type="checkbox" name="'.$flag.'" value="1" ';
+ // checked or unchecked?
+ if ($group->usesPlugin($this->name)) {
+ echo 'checked="checked"';
+ }
+ echo ' /><br/>';
+ echo '</td>';
+ echo '<td>';
+ echo '<strong>'. sprintf(_('Use %s Plugin'), $this->text) .'</strong>';
+ echo html_image($imgStatus, '16', '16',array('alt'=>$title, 'title'=>$title));
+ echo '</td>';
+ echo '</tr>';