Skip navigation
Help

theme_dashboard_disabled_block

7 dashboard.module theme_dashboard_disabled_block($variables)

Returns HTML for a disabled block, for display in dashboard customization mode.

Parameters

$variables: An associative array containing:

Related topics

1 theme call to theme_dashboard_disabled_block()

File

drupal/modules/dashboard/dashboard.module, line 664

Code

function theme_dashboard_disabled_block($variables) {
  extract($variables);
  $output = "";
  if (isset($block)) {
    $output .= '<div id="block-' . $block['module'] . '-' . $block['delta']
    . '" class="disabled-block block block-' . $block['module'] . '-' . $block['delta']
    . ' module-' . $block['module'] . ' delta-' . $block['delta'] . '">'
    . '<h2>' . (!empty($block['title']) && $block['title'] != '<none>' ? check_plain($block['title']) : check_plain($block['info'])) . '</h2>'
    . '<div class="content"></div>'
    . '</div>';
  }
  return $output;
}