function drupal_add_region_content
Adds content to a specified region.
Parameters
$region: Page region the content is added to.
$data: Content to be added.
5 calls to drupal_add_region_content()
- DrupalSetContentTestCase::testRegions in modules/
simpletest/ tests/ common.test - Test setting and retrieving content for theme regions.
- drupal_get_region_content in includes/
common.inc - Gets assigned content for a given region.
- install_display_output in includes/
install.core.inc - Displays themed installer output and ends the page request.
- update_task_list in ./
update.php - Adds the update task list to the current page.
- _theme_test_drupal_add_region_content in modules/
simpletest/ tests/ theme_test.module - Page callback, calls drupal_add_region_content.
File
-
includes/
common.inc, line 175
Code
function drupal_add_region_content($region = NULL, $data = NULL) {
static $content = array();
if (isset($region) && isset($data)) {
$content[$region][] = $data;
}
return $content;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.