function drupal_render_children

cis7 common.inc drupal_render_children(&$element, $children_keys = NULL)
cle7 common.inc drupal_render_children(&$element, $children_keys = NULL)
elmsmedia7 common.inc drupal_render_children(&$element, $children_keys = NULL)
icor7 common.inc drupal_render_children(&$element, $children_keys = NULL)
meedjum_blog7 common.inc drupal_render_children(&$element, $children_keys = NULL)
mooc7 common.inc drupal_render_children(&$element, $children_keys = NULL)

Renders children of an element and concatenates them.

This renders all children of an element using drupal_render() and then joins them together into a single string.

Parameters

$element: The structured array whose children shall be rendered.

$children_keys: If the keys of the element's children are already known, they can be passed in to save another run of element_children().

86 calls to drupal_render_children()
context-ui-editor.tpl.php in sites/all/modules/ulmus/context/context_ui/theme/context-ui-editor.tpl.php
context-ui-form.tpl.php in sites/all/modules/ulmus/context/context_ui/theme/context-ui-form.tpl.php
context-ui-plugins.tpl.php in sites/all/modules/ulmus/context/context_ui/theme/context-ui-plugins.tpl.php
diff_tokens in sites/all/modules/ulmus/diff/diff.tokens.inc
Implements hook_tokens().
ds_forms_preprocess_ds_forms_custom_form in sites/all/modules/ulmus/ds/modules/ds_forms/ds_forms.module
Implements hook_preprocess_ds_forms_custom_form().

... See full list

1 string reference to 'drupal_render_children'
ds_forms_preprocess_ds_forms_custom_form in sites/all/modules/ulmus/ds/modules/ds_forms/ds_forms.module
Implements hook_preprocess_ds_forms_custom_form().

File

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

Code

function drupal_render_children(&$element, $children_keys = NULL) {
  if ($children_keys === NULL) {
    $children_keys = element_children($element);
  }
  $output = '';
  foreach ($children_keys as $key) {
    if (!empty($element[$key])) {
      $output .= drupal_render($element[$key]);
    }
  }
  return $output;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.