block_admin_display

Versions
4.6 – 4.7
block_admin_display()
5 – 7
block_admin_display($theme = NULL)

Menu callback for admin/structure/block.

Parameters

 $theme The theme to display the administration page for. If not provided, defaults to the currently used theme.

Code

modules/block/block.admin.inc, line 23

<?php
function block_admin_display($theme = NULL) {
  global $theme_key;
  
  drupal_theme_initialize();

  if (!isset($theme)) {
    // If theme is not specifically set, rehash for the current theme.
    $theme = $theme_key;
  }

  // Fetch and sort blocks.
  $blocks = _block_rehash($theme);
  $compare_theme = &drupal_static('_block_compare:theme');
  $compare_theme = $theme;
  usort($blocks, '_block_compare');

  return drupal_get_form('block_admin_display_form', $blocks, $theme);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.