drupal_render_children

Versions
7
drupal_render_children(&$element, $children_keys = NULL)

Render children of an element and concatenate 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().

▾ 39 functions call drupal_render_children()

template_preprocess_block_admin_display_form in modules/block/block.admin.inc
Process variables for block-admin-display.tpl.php.
template_preprocess_field_ui_display_overview_form in modules/field_ui/field_ui.admin.inc
Theme preprocess function for field_ui-display-overview-form.tpl.php.
template_preprocess_field_ui_field_overview_form in modules/field_ui/field_ui.admin.inc
Theme preprocess function for field_ui-field-overview-form.tpl.php.
template_preprocess_poll_vote in modules/poll/poll.module
Themes the voting form for a poll.
theme_aggregator_categorize_items in modules/aggregator/aggregator.pages.inc
Theme the page list form for assigning categories.
theme_color_scheme_form in modules/color/color.module
Theme the color form.
theme_confirm_form in modules/system/system.module
Theme confirmation forms.
theme_date in includes/form.inc
Theme a date selection form element.
theme_file_managed_file in modules/file/file.module
Theme a managed file element.
theme_file_widget in modules/file/file.field.inc
Theme an individual file upload widget.
theme_file_widget_multiple in modules/file/file.field.inc
Theme a group of file upload widgets.
theme_filter_admin_order in modules/filter/filter.admin.inc
Theme filter order configuration form.
theme_filter_admin_overview in modules/filter/filter.admin.inc
Theme the text format administration overview form.
theme_forum_form in modules/forum/forum.admin.inc
Theme forum forms.
theme_image_widget in modules/image/image.field.inc
Theme the display of the image field widget.
theme_locale_date_format_form in modules/locale/locale.module
Theme locale date format form.
theme_locale_languages_configure_form in includes/locale.inc
Theme the language configure form.
theme_locale_languages_overview_form in includes/locale.inc
Theme the language overview form.
theme_menu_overview_form in modules/menu/menu.admin.inc
Theme the menu overview form into a table.
theme_node_filter_form in modules/node/node.admin.inc
Theme node administration filter form.
theme_node_form in modules/node/node.pages.inc
Present a node submission form.
theme_node_search_admin in modules/node/node.module
Theme the content ranking part of the search settings admin page.
theme_poll_choices in modules/poll/poll.module
Theme the admin poll form for choices.
theme_profile_admin_overview in modules/profile/profile.admin.inc
Theme the profile field overview into a drag and drop enabled table.
theme_shortcut_set_customize in modules/shortcut/shortcut.admin.inc
Theme function for the shortcut set customization form.
theme_shortcut_set_switch in modules/shortcut/shortcut.admin.inc
Theme function for the form that switches shortcut sets.
theme_system_date_time_settings in modules/system/system.admin.inc
Theme function for date settings form.
theme_system_modules_uninstall in modules/system/system.admin.inc
Themes a table of currently disabled modules.
theme_system_settings_form in modules/system/system.module
Theme function for the system settings form.
theme_system_themes_form in modules/system/system.admin.inc
Theme function for the system themes form.
theme_taxonomy_overview_terms in modules/taxonomy/taxonomy.admin.inc
Theme the terms overview as a sortable list of terms.
theme_taxonomy_overview_vocabularies in modules/taxonomy/taxonomy.admin.inc
Theme the vocabulary overview as a sortable list of vocabularies.
theme_trigger_display in modules/trigger/trigger.admin.inc
Displays actions assigned to this hook in a table.
theme_update_manager_update_form in modules/update/update.manager.inc
Theme the first page in the update manager wizard to select projects.
theme_upload_form_current in modules/upload/upload.module
Theme the attachments list.
theme_upload_form_new in modules/upload/upload.module
Theme the attachment form. Note: required to output prefix/suffix.
theme_user_admin_new_role in modules/user/user.admin.inc
Theme the new-role form.
theme_user_admin_permissions in modules/user/user.admin.inc
Theme the administer permissions page.
theme_user_filter_form in modules/user/user.admin.inc
Theme user administration filter form.

Code

includes/common.inc, line 5071

<?php
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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.