function dashboard_show_disabled
dashboard_show_disabled()
Ajax callback: Shows disabled blocks in the dashboard customization mode.
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(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!dashboard!dashboard.module/function/dashboard_show_disabled/7.x