You are here

function block_admin_display_prepare_blocks in Drupal 7

Prepares a list of blocks for display on the blocks administration page.

Parameters

$theme: The machine-readable name of the theme whose blocks should be returned.

Return value

An array of blocks, as returned by _block_rehash(), sorted by region in preparation for display on the blocks administration page.

See also

block_admin_display_form()

2 calls to block_admin_display_prepare_blocks()
block_admin_display in modules/block/block.admin.inc
Menu callback for admin/structure/block.
dashboard_admin_blocks in modules/dashboard/dashboard.module
Page callback: Builds the page for administering dashboard blocks.

File

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

Code

function block_admin_display_prepare_blocks($theme) {
  $blocks = _block_rehash($theme);
  $compare_theme =& drupal_static('_block_compare:theme');
  $compare_theme = $theme;
  usort($blocks, '_block_compare');
  return $blocks;
}