diff --git a/core/includes/common.inc b/core/includes/common.inc index 75c101f..917da41 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -7570,22 +7570,21 @@ function drupal_get_filetransfer_info() { } /** - * #pre_render callback that will drupal_render() specified children to - * become the value of another child. + * Pre-render callback: renders specified children as the value of another child. * * This function is meant for render array that uses #theme, allowing * arguments for that theme function to be renderable array. * - * You have #map_childs, which key is the argument for #theme that you wish - * its value to be rendered before hand. #map_childs values are children, + * You have #map_children, which key is the argument for #theme that you wish + * its value to be rendered before hand. #map_children values are children, * you can have more than one child, this will be merge in the call to * drupal_render_children(). * * This is an example that produce : * @code * $markup = array( - * '#pre_render' => array('drupal_pre_render_map_childs'), - * '#map_childs' => array( + * '#pre_render' => array('drupal_pre_render_map_children'), + * '#map_children' => array( * // $markup['notatext'] is going to be rendered, which result is saved * // in $markup['#text'], later we pass #text as the argument for theme_link(). * '#text' => array('nottext_markup'), @@ -7612,14 +7611,14 @@ function drupal_get_filetransfer_info() { * @see drupal_render() * * @param $elements - * A structured array using the #map_childs key. + * A structured array using the #map_children key. * * @return - * The passed-in elements, but has the values of each #map_childs rendered, + * The passed-in elements, but has the values of each #map_children rendered, * and saved as a child named with the key. */ -function drupal_pre_render_map_childs($element) { - foreach ($element['#map_childs'] as $key => $value) { +function drupal_pre_render_map_children($element) { + foreach ($element['#map_children'] as $key => $value) { if (is_array($value)) { $element[$key] = drupal_render_children($element, $value); }