function drupal_add_region_content

Adds content to a specified region.

Parameters

$region: Page region the content is added to.

$data: Content to be added.

4 calls to drupal_add_region_content()
drupal_get_region_content in drupal/core/includes/common.inc
Gets assigned content for a given region.
install_display_output in drupal/core/includes/install.core.inc
Displays themed installer output and ends the page request.
RegionContentTest::testRegions in drupal/core/modules/system/lib/Drupal/system/Tests/Common/RegionContentTest.php
Tests setting and retrieving content for theme regions.
update_task_list in drupal/core/update.php
Adds the update task list to the current page.

File

drupal/core/includes/common.inc, line 224
Common functions that many Drupal modules will need to reference.

Code

function drupal_add_region_content($region = NULL, $data = NULL) {
  static $content = array();
  if (isset($region) && isset($data)) {
    $content[$region][] = $data;
  }
  return $content;
}