geo/modules/geo_data/geo_data.admin.inc, line 117
- Versions
- 6
theme_geo_data_admin_tables($form)
Code
<?php
function theme_geo_data_admin_tables($form) {
$rows = array();
foreach (element_children($form['tables']) as $k => $table) {
unset($form['tables'][$table]['table_label']['#title']);
//TODO perhaps put the table in one column and the title in the other 4
$form['tables'][$table]['table_label']['#prefix'] = "$table:";
$rows[] = array(array('data' => drupal_render($form['tables'][$table]['table_label']), 'colspan' => 5, 'header' => 1));
foreach (element_children($form['tables'][$table]) as $k => $i) {
$rows[] = array(
drupal_render($form['tables'][$table][$i]['exposed']),
drupal_render($form['tables'][$table][$i]['name']),
drupal_render($form['tables'][$table][$i]['type']),
drupal_render($form['tables'][$table][$i]['desc']),
);
}
}
$hdrs = array(
t('Expose as field'),
t('Column Name'),
t('Data Type'),
t('Label'),
);
$output = theme('table', $hdrs, $rows);
$output .= drupal_render($form);
return $output;
}
?> 