function theme_spaces_preset_list_new in Spaces 6.3
Theme function for spaces_presets_list_new().
1 theme call to theme_spaces_preset_list_new()
- spaces_preset_list in spaces_ui/
export_ui/ spaces_presets_export_ui.class.php - Presets form.
File
- spaces_ui/
export_ui/ spaces_presets_export_ui.class.php, line 221
Code
function theme_spaces_preset_list_new($form) {
drupal_add_css(drupal_get_path('module', 'spaces') . '/spaces.css');
$row = $header = array();
foreach (element_children($form) as $key) {
if (isset($form[$key]['#title'])) {
$header[] = $form[$key]['#title'];
unset($form[$key]['#title']);
}
else {
$header[] = '';
}
$row[] = drupal_render($form[$key]);
}
$output = theme('table', $header, array(
$row,
));
$output .= drupal_render($form);
return $output;
}