function theme_biblio_admin_type_mapper_form in Bibliography Module 6.2
Same name and namespace in other branches
- 6 biblio.admin.inc \theme_biblio_admin_type_mapper_form()
- 7 includes/biblio.admin.inc \theme_biblio_admin_type_mapper_form()
- 7.2 includes/biblio.admin.inc \theme_biblio_admin_type_mapper_form()
File
- includes/
biblio.admin.inc, line 1243 - Administrative files for the biblio module.
Code
function theme_biblio_admin_type_mapper_form($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/settings/biblio/iomap/' . $form['#file_format'] . '/pubtype/add'),
l('[' . t('Add New Biblio Publication Type') . ']', 'admin/settings/biblio/fields/type/new'),
);
$header = array(
$title . ' ' . t('Publication Types'),
t('Biblio Publication Type'),
);
$output .= theme('table', $header, $rows);
// $output .= l('['.t('Add New'). " $title ".t('Publication Type').']','admin/settings/biblio/fields/typemap/'.$form['fileformat']['#value'].'/add').' ';
// $output .= l('['.t('Add New Biblio Publication Type').']','admin/settings/biblio/fields/type/new').'<br />';
$output .= drupal_render($form['submit']);
$output .= drupal_render($form['reset']);
$output .= drupal_render($form);
return $output;
}