function theme_dba_edit_row in Database Administration 5
File
- ./
dba.module, line 604 - Allows administrators direct access to their Drupal database. Written by Jeremy Andrews <jeremy@kerneltrap.org>, June 2004. PostgreSQL functionality provided by AAM <aam@ugpl.de> Major security audit, porting, and maintenance by Derek…
Code
function theme_dba_edit_row($form) {
$header = explode(',', $form['header']['#value']);
$key = $form['key']['#value'];
$keyid = $form['keyid']['#value'];
$rows = array();
$row = array();
foreach ($header as $k => $name) {
if ($name == $key) {
$row[] = $keyid;
}
else {
$row[] = drupal_render($form['field'][$name]);
}
}
$rows[] = $row;
$output = theme('table', $header, $rows);
$output .= drupal_render($form);
return $output;
}