/[drupal]/contributions/modules/storm/storm.theme.inc
ViewVC logotype

Diff of /contributions/modules/storm/storm.theme.inc

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

revision 1.5, Wed Jun 11 12:49:39 2008 UTC revision 1.6, Tue Jul 1 07:47:41 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: storm.theme.inc,v 1.4 2008/05/28 14:51:31 robertogerola Exp $  // $Id: storm.theme.inc,v 1.5 2008/06/11 12:49:39 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 7  Line 7 
7    
8  function theme_storm_form_group($form) {  function theme_storm_form_group($form) {
9    drupal_add_css(drupal_get_path('module', 'storm') .'/storm.css', 'module');    drupal_add_css(drupal_get_path('module', 'storm') .'/storm.css', 'module');
10    $o = '<table class="formgroup"><tr>';  
11      $row = array();
12    foreach (element_children($form) as $key) {    foreach (element_children($form) as $key) {
13      $o .= '<td>'. drupal_render($form[$key]) .'</td>';      array_push($row, drupal_render($form[$key]));
14    }    }
15    $o .= '</tr></table>';    $rows[] = array('data' => $row, 'class' => 'formgroup');
16    return $o;    $output .= theme('table', array(), $rows, array('class' => 'formgroup'));
17      return $output;
18  }  }
19    
20  function theme_datetime($element) {  function theme_datetime($element) {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.2