/[drupal]/drupal/modules/block.module
ViewVC logotype

Diff of /drupal/modules/block.module

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

revision 1.206.2.3, Sun Aug 20 11:32:00 2006 UTC revision 1.206.2.4, Wed Oct 18 20:14:42 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: block.module,v 1.206.2.2 2006/07/02 20:53:52 killes Exp $  // $Id: block.module,v 1.206.2.3 2006/08/20 11:32:00 killes Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 302  function theme_block_admin_display($form Line 302  function theme_block_admin_display($form
302    $last_region = '';    $last_region = '';
303    $last_status = 1;    $last_status = 1;
304    foreach (element_children($form) as $i) {    foreach (element_children($form) as $i) {
305      $block = $form[$i];      $block = &$form[$i];
306      // Only take form elements that are blocks.      // Only take form elements that are blocks.
307      if (is_array($block['info'])) {      if (is_array($block['info'])) {
308        // Fetch values        // Fetch values
# Line 346  function theme_block_admin_display($form Line 346  function theme_block_admin_display($form
346    
347    $output = theme('table', $header, $rows, array('id' => 'blocks'));    $output = theme('table', $header, $rows, array('id' => 'blocks'));
348    $output .= form_render($form['submit']);    $output .= form_render($form['submit']);
349    // Also render the form_id as there is no form_render($form) call (as form_render does not appear to handle the    $output .= form_render($form);
   // multi-dimensional block form array very well).  
   $output .= form_render($form['form_id']);  
   
350    return $output;    return $output;
351  }  }
352    

Legend:
Removed from v.1.206.2.3  
changed lines
  Added in v.1.206.2.4

  ViewVC Help
Powered by ViewVC 1.1.2