function drupal_add_region_content

7.x drupal_add_region_content($region = NULL, $data = NULL)

Adds content to a specified region.


$region: Page region the content is added to.

$data: Content to be added.

4 calls to drupal_add_region_content()
DrupalSetContentTestCase::testRegions in drupal/modules/simpletest/tests/common.test
Test setting and retrieving content for theme regions.
drupal_get_region_content in drupal/includes/
Gets assigned content for a given region.
install_display_output in drupal/includes/
Displays themed installer output and ends the page request.
update_task_list in drupal/update.php
Adds the update task list to the current page.


drupal/includes/, line 175
Common functions that many Drupal modules will need to reference.


function drupal_add_region_content($region = NULL, $data = NULL) {
  static $content = array();

  if (isset($region) && isset($data)) {
    $content[$region][] = $data;
  return $content;