function theme_dashboard_disabled_block
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
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.