drupal_add_region_content

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

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

File

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

Comments

Unusable for theming purposes

It seems there is a bug on this.

http://drupal.org/node/713462

It seems drupal_add_region_content() is useful for core install module.

Login or register to post comments