function dashboard_show_disabled

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

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.