| 5 system.module | theme_admin_block_content($content) |
| 6 system.admin.inc | theme_admin_block_content( |
| 7 system.admin.inc | theme_admin_block_content($variables) |
| 8 system.admin.inc | theme_admin_block_content($variables) |
This function formats the content of an administrative block.
@themeable
Parameters
$block: An array containing information about the block. It should include a 'title', a 'description' and a formatted 'content'.
3 theme calls to theme_admin_block_content()
File
- modules/
system/ system.module, line 2266 - Configuration system that lets administrators modify the workings of the site.
Code
function theme_admin_block_content($content) {
if (!$content) {
return '';
}
if (system_admin_compact_mode()) {
$output = '<ul class="menu">';
foreach ($content as $item) {
$output .= '<li class="leaf">' . l($item['title'], $item['path'], array('title' => $item['description'])) . '</li>';
}
$output .= '</ul>';
}
else {
$output = '<dl class="admin-list">';
foreach ($content as $item) {
$output .= '<dt>' . l($item['title'], $item['path']) . '</dt>';
$output .= '<dd>' . $item['description'] . '</dd>';
}
$output .= '</dl>';
}
return $output;
}
Login or register to post comments