4.7.x common.inc drupal_get_content($region = NULL, $delimiter = ' ')
5.x common.inc drupal_get_content($region = NULL, $delimiter = ' ')
6.x common.inc drupal_get_content($region = NULL, $delimiter = ' ')

Get assigned content.


$region: A specified region to fetch content for. If NULL, all regions will be returned.

$delimiter: Content to be inserted between imploded array elements.

2 calls to drupal_get_content()
template_preprocess_maintenance_page in includes/theme.maintenance.inc
The variables generated here is a mirror of template_preprocess_page(). This preprocessor will run it's course when theme_maintenance_page() is invoked. It is also used in theme_install_page() and theme_update_page() to keep all the variables…
theme_blocks in includes/theme.inc
Return a set of blocks available for the current user.


includes/common.inc, line 65
Common functions that many Drupal modules will need to reference.


function drupal_get_content($region = NULL, $delimiter = ' ') {
  $content = drupal_set_content();
  if (isset($region)) {
    if (isset($content[$region]) && is_array($content[$region])) {
      return implode($delimiter, $content[$region]);
  else {
    foreach (array_keys($content) as $region) {
      if (is_array($content[$region])) {
        $content[$region] = implode($delimiter, $content[$region]);
    return $content;