function _block_get_renderable_array

cis7 block.module _block_get_renderable_array($list = array())
cle7 block.module _block_get_renderable_array($list = array())
elmsmedia7 block.module _block_get_renderable_array($list = array())
icor7 block.module _block_get_renderable_array($list = array())
meedjum_blog7 block.module _block_get_renderable_array($list = array())
mooc7 block.module _block_get_renderable_array($list = array())

Gets an array of blocks suitable for drupal_render().

Parameters

$list: A list of blocks such as that returned by block_list().

Return value

A renderable array.

10 calls to _block_get_renderable_array()
block_get_blocks_by_region in modules/block/block.module
Gets a renderable array of a region containing all enabled blocks.
boxes_footer in sites/all/modules/ulmus/boxes/boxes.module
Implements hook_footer().
context_reaction_block::block_get_blocks_by_region in sites/all/modules/ulmus/context/plugins/context_reaction_block.inc
Get a renderable array of a region containing all enabled blocks.
context_reaction_block::render_ajax in sites/all/modules/ulmus/context/plugins/context_reaction_block.inc
Block renderer for AJAX requests. Triggered when $_GET['context_block'] is set. See ->execute() for how this is called.
dashboard_page_build in modules/dashboard/dashboard.module
Implements hook_page_build().

... See full list

File

modules/block/block.module, line 333
Controls the visual building blocks a page is constructed with.

Code

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; skip the main content block, since
    // contextual links are basically output as tabs/local tasks already. Also
    // skip the help block, since we assume that most users do not need or want
    // to perform contextual actions on the help block, and the links needlessly
    // draw attention on it.
    if ($key != 'system_main' && $key != 'system_help') {
      $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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.