#92192 by webchick. Hide empty blocks on administer by modules.
parent
36430b4c64
commit
1ce403df10
|
@ -2243,16 +2243,21 @@ function system_admin_by_module() {
|
|||
}
|
||||
|
||||
$admin_tasks = system_get_module_admin_tasks($module);
|
||||
|
||||
// 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");
|
||||
}
|
||||
|
||||
// Sort
|
||||
// Sort.
|
||||
ksort($admin_tasks);
|
||||
|
||||
$menu_items[$file->info['name']] = array($file->info['description'], $admin_tasks);
|
||||
}
|
||||
}
|
||||
return theme('system_admin_by_module', $menu_items);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue