function block_admin_display

Same name and namespace in other branches
  1. 7.x drupal-7.x/modules/block/block.admin.inc \block_admin_display()

Menu callback for admin/build/block.

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

Archivo

drupal-6.x/modules/block/block.admin.inc, line 11
Admin page callbacks for the block module.

Código

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