aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/plugins.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-16 16:57:39 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-16 16:57:39 +0000
commite663d523186a12a41aca0541c996a6a0022912d8 (patch)
tree9c080159e9e3d702e85b5d4be80f70837a919416 /views/default/admin/plugins.php
parent6609ac6ad0990f4b08d9a6783ff85a03a1daf7f3 (diff)
downloadelgg-e663d523186a12a41aca0541c996a6a0022912d8.tar.gz
elgg-e663d523186a12a41aca0541c996a6a0022912d8.tar.bz2
You can now reorder plugins.
git-svn-id: https://code.elgg.org/elgg/trunk@2274 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/plugins.php')
-rw-r--r--views/default/admin/plugins.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/admin/plugins.php b/views/default/admin/plugins.php
index 449c86d11..cc96b40f8 100644
--- a/views/default/admin/plugins.php
+++ b/views/default/admin/plugins.php
@@ -21,13 +21,18 @@
// Get the installed plugins
$installed_plugins = $vars['installed_plugins'];
$count = count($installed_plugins);
+
+ $plugin_list = get_plugin_list();
+ $max = 0;
+ foreach($plugin_list as $key => $foo)
+ if ($key > $max) $max = $key;
// Display list of plugins
$n = 0;
foreach ($installed_plugins as $plugin => $data)
{
//if (($n>=$offset) && ($n < $offset+$limit))
- echo elgg_view("admin/plugins_opt/plugin", array('plugin' => $plugin, 'details' => $data));
+ echo elgg_view("admin/plugins_opt/plugin", array('plugin' => $plugin, 'details' => $data, 'maxorder' => $max, 'order' => array_search($plugin, $plugin_list)));
$n++;
}