- Patch #805124 by catch: admin/config shows empty admin blocks.

merge-requests/26/head
Dries Buytaert 2010-05-21 11:37:55 +00:00
parent 34792fa8ae
commit f42b6adaff
1 changed files with 4 additions and 1 deletions

View File

@ -97,12 +97,15 @@ function system_admin_config_page() {
}
$block = $item;
$block['content'] = '';
$block['show'] = TRUE;
if ($item['block_callback'] && function_exists($item['block_callback'])) {
$function = $item['block_callback'];
$block['content'] .= $function();
}
$block['content'] .= theme('admin_block_content', array('content' => system_admin_menu_block($item)));
if (!empty($block['content'])) {
$block['show'] = TRUE;
}
// Prepare for sorting as in function _menu_tree_check_access().
// The weight is offset so it is always positive, with a uniform 5-digits.
$blocks[(50000 + $item['weight']) . ' ' . $item['title'] . ' ' . $item['mlid']] = $block;