_block_get_renderable_array($list = array())Get an array of blocks suitable for drupal_render().
$list A list of blocks such as that returned by block_list().
A renderable array.
modules/block/block.module, line 283
<?php
function _block_get_renderable_array($list = array()) {
$weight = 0;
$build = array();
foreach ($list as $key => $block) {
$build[$key] = $block->content;
unset($block->content);
// Add contextual links for this block; skipping the system main block.
if ($key != 'system_main') {
$build[$key]['#contextual_links']['block'] = array('admin/structure/block/manage', array($block->module, $block->delta));
}
$build[$key] += array(
'#block' => $block,
'#weight' => ++$weight,
);
$build[$key]['#theme_wrappers'][] ='block';
}
$build['#sorted'] = TRUE;
return $build;
}
?>