function dashboard_show_disabled in Drupal 7
Ajax callback: Shows disabled blocks in the dashboard customization mode.
1 string reference to 'dashboard_show_disabled'
- dashboard_menu in modules/
dashboard/ dashboard.module - Implements hook_menu().
File
- modules/
dashboard/ dashboard.module, line 494 - Provides a dashboard page in the administrative interface.
Code
function dashboard_show_disabled() {
global $theme_key;
// Blocks are not necessarily initialized at this point.
$blocks = _block_rehash();
// Limit the list to blocks that are marked as disabled for the dashboard.
foreach ($blocks as $key => $block) {
if ($block['theme'] != $theme_key || $block['region'] != 'dashboard_inactive') {
unset($blocks[$key]);
}
}
// Theme the output and end the page request.
print theme('dashboard_disabled_blocks', array(
'blocks' => $blocks,
));
drupal_exit();
}