Allow to sort plugins by "ALL".
authorgarvinhicking <garvinhicking>
Tue, 11 Apr 2006 10:50:15 +0000 (10:50 +0000)
committergarvinhicking <garvinhicking>
Tue, 11 Apr 2006 10:50:15 +0000 (10:50 +0000)
include/admin/plugins.inc.php

index ffe9a3435b1860bfaebb5b56cbfede5fe0342158..b9a9a6a7fc0b34aa362b131ed094af6cf2e3b5a6 100644 (file)
@@ -196,7 +196,9 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
     $pluggroups     = array();
     $pluggroups[''] = array();
     foreach($pluginstack AS $plugname => $plugdata) {
-        if (is_array($plugdata['groups'])) {
+        if ($serendipity['GET']['only_group'] == 'ALL') {
+            $pluggroups['ALL'][] = $plugdata;
+        } elseif (is_array($plugdata['groups'])) {
             foreach($plugdata['groups'] AS $group) {
                 $pluggroups[$group][] = $plugdata;
             }
@@ -228,6 +230,7 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
                     ?>
                     <option value="<?php echo $available_group; ?>" <?php echo ($serendipity['GET']['only_group'] == $available_group ? 'selected="selected"' : ''); ?>><?php echo serendipity_groupname($available_group); ?>
             <?php } ?>
+                    <option value="ALL" <?php echo ($serendipity['GET']['only_group'] == 'ALL' ? 'selected="selected"' : ''); ?>><?php echo ALL_CATEGORIES; ?>
                 </select>
                 <input type="submit" value="<?php echo GO; ?>" />
             </form>