Ajax callback: Shows disabled blocks in the dashboard customization mode.
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();
}