You are here

function block_admin_display in Drupal 6

Same name and namespace in other branches
  1. 4 modules/block.module \block_admin_display()
  2. 5 modules/block/block.module \block_admin_display()
  3. 7 modules/block/block.admin.inc \block_admin_display()

Menu callback for admin/build/block.

1 string reference to 'block_admin_display'
block_menu in modules/block/block.module
Implementation of hook_menu().

File

modules/block/block.admin.inc, line 11
Admin page callbacks for the block module.

Code

function block_admin_display($theme = NULL) {
  global $custom_theme;

  // If non-default theme configuration has been selected, set the custom theme.
  $custom_theme = isset($theme) ? $theme : variable_get('theme_default', 'garland');

  // Fetch and sort blocks
  $blocks = _block_rehash();
  usort($blocks, '_block_compare');
  return drupal_get_form('block_admin_display_form', $blocks, $theme);
}