function drupal_set_content
6.x common.inc | 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.
4 calls to drupal_set_content()
- drupal_get_content in drupal-6.x/
includes/ common.inc - Get assigned content.
- install_task_list in drupal-6.x/
install.php - Add the installation task list to the current page.
- template_preprocess_block_admin_display_form in drupal-6.x/
modules/ block/ block.admin.inc - Process variables for block-admin-display.tpl.php.
- update_task_list in drupal-6.x/
update.php - Add the update task list to the current page.
File
- drupal-6.x/
includes/ common.inc, line 47 - 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;
}