function block_admin_display_prepare_blocks
block_admin_display_prepare_blocks($theme)
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
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!block!block.admin.inc/function/block_admin_display_prepare_blocks/7.x