theme_dashboard_disabled_block

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 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

Code

modules/dashboard/dashboard.module, line 664

<?php
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;
}
?>