diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index a2d0469..d8d71e4 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -94,6 +94,22 @@ function seven_preprocess_custom_block_add_list(&$variables) { } /** + * Implements hook_preprocess_HOOK() for theme_admin_block_content(). + * + * Uses an unordered list markup in both compact and extended mode. + */ +function seven_preprocess_admin_block_content(&$variables) { + if (!empty($variables['content'])) { + $variables['compact'] = system_admin_compact_mode() ? 'compact' : ''; + foreach ($variables['content'] as $key => $item) { + $variables['content'][$key]['label'] = filter_xss_admin($item['title']); + $variables['content'][$key]['path'] = url($item['href']); + $variables['content'][$key]['description'] = filter_xss_admin($item['description']); + } + } +} + +/** * Implements hook_preprocess_HOOK() for tablesort indicator templates. * * Uses Seven's image versions, so the arrows show up as black and not gray on