Commit 1ce403df authored by drumm's avatar drumm
Browse files

#92192 by webchick. Hide empty blocks on administer by modules.

parent 36430b4c
......@@ -2243,15 +2243,20 @@ function system_admin_by_module() {
}
$admin_tasks = system_get_module_admin_tasks($module);
// Check for help links.
if (module_invoke($module, 'help', "admin/help#$module")) {
$admin_tasks[100] = l(t('Get help'), "admin/help/$module");
}
// Sort
ksort($admin_tasks);
// Only display a section if there are any available tasks.
if (count($admin_tasks)) {
// Check for help links.
if (module_invoke($module, 'help', "admin/help#$module")) {
$admin_tasks[100] = l(t('Get help'), "admin/help/$module");
}
$menu_items[$file->info['name']] = array($file->info['description'], $admin_tasks);
// Sort.
ksort($admin_tasks);
$menu_items[$file->info['name']] = array($file->info['description'], $admin_tasks);
}
}
return theme('system_admin_by_module', $menu_items);
}
......
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