function theme_data_entity_admin_entity_form in Data 7
Theme data_ui_edit_form.
File
- data_entity/
data_entity.admin.inc, line 156 - Admin UI functions.
Code
function theme_data_entity_admin_entity_form($variables) {
$form = $variables['form'];
if (empty($form['table'])) {
// If there's nothing in the form, there's nothing to do.
return;
}
// Format existing fields.
$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]);
}
$row[] = ' ';
$rows[] = $row;
}
$header = array(
t('Name'),
t('Locked'),
t('Required'),
t('Label'),
);
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
));
$output .= drupal_render_children($form);
return $output;
}