You are here

function theme_biblio_admin_author_edit_form in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio_theme.inc \theme_biblio_admin_author_edit_form()
  2. 6 biblio_theme.inc \theme_biblio_admin_author_edit_form()
  3. 7.2 includes/biblio.theme.inc \theme_biblio_admin_author_edit_form()

Themes the author editing form.

Parameters

$form:

Return value

rendered form

File

includes/biblio_theme.inc, line 1247

Code

function theme_biblio_admin_author_edit_form($variables) {
  $form = $variables['form'];
  $rows = array();
  $rows[] = array(
    array(
      'data' => drupal_render($form['prefix']),
    ),
    array(
      'data' => drupal_render($form['firstname']),
    ),
    array(
      'data' => drupal_render($form['initials']),
    ),
    array(
      'data' => drupal_render($form['lastname']),
    ),
    array(
      'data' => drupal_render($form['suffix']),
    ),
  );
  $rows[] = array(
    array(
      'data' => drupal_render($form['name']) . drupal_render($form['literal']),
      'colspan' => 5,
    ),
  );
  $rows[] = array(
    array(
      'data' => drupal_render($form['affiliation']),
      'colspan' => 5,
    ),
  );
  $rows[] = array(
    array(
      'data' => drupal_render($form['drupal_uid']),
      'colspan' => 5,
    ),
  );
  $output = theme('table', array(
    'rows' => $rows,
  ));
  $output .= drupal_render($form['merge']);
  $output .= drupal_render($form['link']);
  $output .= drupal_render_children($form);
  return $output;
}