function drupal_set_content in Drupal 5
Same name and namespace in other branches
- 4 includes/common.inc \drupal_set_content()
- 6 includes/common.inc \drupal_set_content()
Set content for a specified region.
Parameters
$region: Page region the content is assigned to.
$data: Content to be set.
2 calls to drupal_set_content()
- drupal_get_content in includes/
common.inc - Get assigned content.
- theme_block_admin_display in modules/
block/ block.module - Theme main block administration form submission.
File
- includes/
common.inc, line 35 - Common functions that many Drupal modules will need to reference.
Code
function drupal_set_content($region = NULL, $data = NULL) {
static $content = array();
if (!is_null($region) && !is_null($data)) {
$content[$region][] = $data;
}
return $content;
}