Commit 0f7bdb84 authored by Francois Marier's avatar Francois Marier
Browse files

view editor: don't display number of blocktypes in each category



LP: #605698
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent 172ccfc0
......@@ -871,18 +871,11 @@ class View {
$categories[$blocktypecategory->category] = array(
'name' => $blocktypecategory->category,
'title' => call_static_method("PluginBlocktype", "category_title_from_name", $blocktypecategory->category),
'count' => 0,
);
}
$categories[$blocktypecategory->category]['count']++;
}
}
foreach ($categories as &$category) {
$category['title'] .= ' (' . $category['count'] . ')';
unset($category['count']);
}
// The 'internal' plugin is known to the outside world as 'profile', so
// we need to sort on the actual name
usort($categories, create_function('$a, $b', 'return strnatcasecmp($a[\'title\'], $b[\'title\']);'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment