| 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 |
| 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) { |