You are here

function theme_biblio_admin_type_mapper_form in Bibliography Module 7

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

Parameters

$variables:

Return value

unknown

File

includes/biblio.admin.inc, line 1339
biblio.admin.inc

Code

function theme_biblio_admin_type_mapper_form($variables) {
  $form = $variables['form'];
  $title = $form['#file_format_title'];
  foreach (element_children($form['type']) as $key) {
    $rows[] = array(
      drupal_render($form['type'][$key]['format']),
      drupal_render($form['type'][$key]),
    );
  }
  $rows[] = array(
    l('[' . t('Add New') . " {$title} " . t('Publication Type') . ']', 'admin/config/content/biblio/iomap/' . $form['#file_format'] . '/pubtype/add'),
    l('[' . t('Add New Biblio Publication Type') . ']', 'admin/config/content/biblio/pubtype/new'),
  );
  $header = array(
    $title . ' ' . t('Publication Types'),
    t('Biblio Publication Type'),
  );
  $output = theme('table', array(
    'header' => $header,
    'rows' => $rows,
  ));
  $output .= drupal_render($form['submit']);
  $output .= drupal_render($form['reset']);
  $output .= drupal_render_children($form);
  return $output;
}