drupal_set_content
- Versions
- 4.7
drupal_set_content($region = null, $data = null)- 5 – 6
drupal_set_content($region = NULL, $data = NULL)
Set content for a specified region.
Parameters
$region Page region the content is assigned to.
$data Content to be set.
Code
includes/common.inc, line 41
<?php
function drupal_set_content($region = NULL, $data = NULL) {
static $content = array();
if (!is_null($region) && !is_null($data)) {
$content[$region][] = $data;
}
return $content;
}
?>Login or register to post comments 