drupal_set_content

Definition

drupal_set_content($region = NULL, $data = NULL)
drupal/includes/common.inc, line 50

Description

Set content for a specified region.

Parameters

$region Page region the content is assigned to.

$data Content to be set.

Code

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

  if (!is_null($region) && !is_null($data)) {
    $content[$region][] = $data;
  }
  return $content;
}