/[drupal]/drupal/includes/common.inc
ViewVC logotype

Diff of /drupal/includes/common.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1041, Thu Nov 5 16:19:25 2009 UTC revision 1.1042, Sat Nov 7 14:02:31 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: common.inc,v 1.1040 2009/11/03 06:47:22 webchick Exp $  // $Id: common.inc,v 1.1041 2009/11/05 16:19:25 webchick Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 4963  function drupal_render(&$elements) { Line 4963  function drupal_render(&$elements) {
4963    if (isset($elements['#theme'])) {    if (isset($elements['#theme'])) {
4964      $elements['#children'] = theme($elements['#theme'], $elements);      $elements['#children'] = theme($elements['#theme'], $elements);
4965    }    }
4966    // If #theme was not set and the element has children, render them now    // If #theme was not set and the element has children, render them now.
4967    // using drupal_render_children().    // This is the same process as drupal_render_children() but is inlined
4968      // for speed.
4969    if ($elements['#children'] == '') {    if ($elements['#children'] == '') {
4970      $elements['#children'] = drupal_render_children($elements, $children);      foreach ($children as $key) {
4971          $elements['#children'] .= drupal_render($elements[$key]);
4972        }
4973    }    }
4974    
4975    // Let the theme functions in #theme_wrappers add markup around the rendered    // Let the theme functions in #theme_wrappers add markup around the rendered

Legend:
Removed from v.1.1041  
changed lines
  Added in v.1.1042

  ViewVC Help
Powered by ViewVC 1.1.2