function theme_dashboard_disabled_block in Drupal 7
Returns HTML for disabled blocks, for use in dashboard customization mode.
Parameters
$variables: An associative array containing:
- block: A block object from _block_rehash().
Related topics
1 theme call to theme_dashboard_disabled_block()
- theme_dashboard_disabled_blocks in modules/
dashboard/ dashboard.module - Returns HTML for disabled blocks, for use in dashboard customization mode.
File
- modules/
dashboard/ dashboard.module, line 668 - Provides a dashboard page in the administrative interface.
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;
}