function dashboard_admin_blocks

cis7 dashboard.module dashboard_admin_blocks()
cle7 dashboard.module dashboard_admin_blocks()
elmsmedia7 dashboard.module dashboard_admin_blocks()
icor7 dashboard.module dashboard_admin_blocks()
meedjum_blog7 dashboard.module dashboard_admin_blocks()
mooc7 dashboard.module dashboard_admin_blocks()

Page callback: Builds the page for administering dashboard blocks.

This page reuses the Block module's administration form but limits editing to blocks that are available to appear on the dashboard.

See also

block_admin_display()

block_admin_display_form()

dashboard_form_dashboard_admin_display_form_alter()

template_preprocess_dashboard_admin_display_form()

2 string references to 'dashboard_admin_blocks'
dashboard_menu in modules/dashboard/dashboard.module
Implements hook_menu().
og-7.x-1.x.database.php in sites/all/modules/ulmus/og/tests/og-7.x-1.x.database.php
Filled installation of Drupal 7.0, for test purposes.

File

modules/dashboard/dashboard.module, line 315
Provides a dashboard page in the administrative interface.

Code

function dashboard_admin_blocks() {
  global $theme_key;
  drupal_theme_initialize();
  module_load_include('inc', 'block', 'block.admin');

  // Prepare the blocks for the current theme, and remove those that are
  // currently displayed in non-dashboard regions.
  // @todo This assumes the current page is being displayed using the same
  //   theme that the dashboard is displayed in.
  $blocks = block_admin_display_prepare_blocks($theme_key);
  $dashboard_regions = dashboard_region_descriptions();
  $regions_to_remove = array_diff_key(system_region_list($theme_key, REGIONS_VISIBLE), $dashboard_regions);
  foreach ($blocks as $id => $block) {
    if (isset($regions_to_remove[$block['region']])) {
      unset($blocks[$id]);
    }
  }

  // Pass in the above blocks and dashboard regions to the form, so that only
  // dashboard-related regions will be displayed.
  return drupal_get_form('dashboard_admin_display_form', $blocks, $theme_key, $dashboard_regions);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.