1 template.php | seven_admin_block_content($variables) |
Overrides theme_admin_block_content().
Use unordered list markup in both compact and extended mode.
File
- core/
themes/ seven/ template.php, line 67 - Preprocess functions and theme function overrides for the Seven theme.
Code
function seven_admin_block_content($variables) {
$content = $variables['content'];
backdrop_sort($content, array('link_title' => SORT_STRING));
$output = '';
if (!empty($content)) {
$output = '<ul class="admin-list">';
foreach ($content as $item) {
$output .= '<li class="leaf">';
$output .= l($item['title'], $item['href'], $item['localized_options']);
if (isset($item['description'])) {
$output .= '<div class="description">' . filter_xss_admin($item['description']) . '</div>';
}
$output .= '</li>';
}
$output .= '</ul>';
}
return $output;
}