function theme_data_ui_create_form in Data 7
Same name and namespace in other branches
- 6 data_ui/data_ui.admin.inc \theme_data_ui_create_form()
Theme data_ui_create_form.
File
- data_ui/
data_ui.admin.inc, line 1031 - Admin UI functions.
Code
function theme_data_ui_create_form($variables) {
$form = $variables['form'];
// Render field definition form elements in a table.
if (isset($form['fields'])) {
$output = drupal_render($form['help']);
$rows = array();
foreach (element_children($form['fields']) as $e) {
$row = array();
foreach (element_children($form['fields'][$e]) as $f) {
$row[] = drupal_render($form['fields'][$e][$f]);
}
$rows[] = $row;
}
$header = array(
t('Name *'),
t('Label'),
t('Type'),
t('Size'),
t('Unsigned'),
t('Index'),
t('Primary key'),
);
$output .= theme('table', array(
'header' => $header,
'rows' => $rows,
));
$output .= drupal_render_children($form);
return $output;
}
return drupal_render_children($form);
}