Skip navigation
Help

drupal_add_region_content

7 common.inc drupal_add_region_content($region = NULL, $data = NULL)

Add 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()

File

drupal/includes/common.inc, line 161
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;
}