function block_admin_display_prepare_blocks
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
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
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.