function drupal_add_region_content

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.

File

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_add_region_content/7.x