function theme_biblio_admin_type_mapper_form in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 includes/biblio.admin.inc \theme_biblio_admin_type_mapper_form()
- 6 biblio.admin.inc \theme_biblio_admin_type_mapper_form()
- 7 includes/biblio.admin.inc \theme_biblio_admin_type_mapper_form()
File
- includes/
biblio.admin.inc, line 1241
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;
}