1 system.theme.inc theme_admin_block_content($variables)

Returns HTML for the content of an administrative block.

Parameters

$variables: An associative array containing:

  • content: An array containing information about the block. Each element of the array represents an administrative menu item, and must at least contain the keys 'title', 'href', and 'localized_options', which are passed to l(). A 'description' key may also be provided.

Related topics

File

core/modules/system/system.theme.inc, line 490
Theme functions for the System module.

Code

function theme_admin_block_content($variables) {
  $content = $variables['content'];
  $output = '';

  if (!empty($content)) {
    $class = 'admin-list';
    $output .= '<dl class="' . $class . '">';
    foreach ($content as $item) {
      $output .= '<dt>' . l($item['title'], $item['href'], $item['localized_options']) . '</dt>';
      if (isset($item['description'])) {
        $output .= '<dd>' . filter_xss_admin($item['description']) . '</dd>';
      }
    }
    $output .= '</dl>';
  }
  return $output;
}