[Fusionforge-commits] r15478 - in trunk/src: common/include www/admin
Franck VILLAUME
nerville at fusionforge.org
Mon May 7 11:02:51 CEST 2012
Author: nerville
Date: 2012-05-07 11:02:50 +0200 (Mon, 07 May 2012)
New Revision: 15478
Modified:
trunk/src/common/include/Plugin.class.php
trunk/src/www/admin/pluginman.php
Log:
add plugin description : a small text which explains what plugin offers as function
Modified: trunk/src/common/include/Plugin.class.php
===================================================================
--- trunk/src/common/include/Plugin.class.php 2012-05-07 08:59:45 UTC (rev 15477)
+++ trunk/src/common/include/Plugin.class.php 2012-05-07 09:02:50 UTC (rev 15478)
@@ -314,6 +314,10 @@
$user->setPluginUse($this->name, false);
}
}
+
+ function getPluginDescription() {
+ return _('No description available.');
+ }
}
class PluginSpecificRoleSetting {
Modified: trunk/src/www/admin/pluginman.php
===================================================================
--- trunk/src/www/admin/pluginman.php 2012-05-07 08:59:45 UTC (rev 15477)
+++ trunk/src/www/admin/pluginman.php 2012-05-07 09:02:50 UTC (rev 15478)
@@ -202,6 +202,7 @@
$j = 0;
foreach ($filelist as $filename) {
+ $pluginObject = $pm->GetPluginObject($filename);
if ($pm->PluginIsInstalled($filename)) {
$msg = _('Active');
$status = "active";
@@ -246,7 +247,6 @@
}
}
$adminlink = '';
- $pluginObject = plugin_get_object($filename);
if (method_exists($pluginObject, 'getAdminOptionLink')) {
$adminlink = $pluginObject->getAdminOptionLink();
}
@@ -259,7 +259,10 @@
$groups = _('None');
$adminlink = '';
}
-
+ $description = '';
+ if (method_exists($pluginObject, 'getPluginDescription')) {
+ $description = $pluginObject->getPluginDescription();
+ }
// Disable link to action if action is not possible.
if (isset($action[$filename][$next]) && $action[$filename][$next] === false) {
$link = '';
@@ -267,7 +270,7 @@
$title = _('Current plugin status:'). ' ' .forge_get_config('plugin_status', $filename);
echo '<tr '. $HTML->boxGetAltRowStyle($j+1) .'>'.
- '<td title="'. $title .'" >'. $filename.'</td>'.
+ '<td title="'. $description.' '.$title .'">'. $filename.'</td>'.
'<td class="'.$status.'" class="align-center">'. $msg .'</td>'.
'<td class="align-center">'. $link .'</td>'.
'<td class="align-left">'. $users .'</td>'.
More information about the Fusionforge-commits
mailing list