function theme_oai_field_mapper_form in Views OAI-PMH 7
Same name and namespace in other branches
- 6.2 theme/views_oai_pmh.theme.inc \theme_oai_field_mapper_form()
- 6 theme/views_oai_pmh.theme.inc \theme_oai_field_mapper_form()
- 7.2 theme/views_oai_pmh.theme.inc \theme_oai_field_mapper_form()
2 theme calls to theme_oai_field_mapper_form()
- views_oai_pmh_plugin_row_dc::options_form in plugins/
views_oai_pmh_plugin_row_dc.inc - Provide a form for setting options.
- views_oai_pmh_plugin_row_etdms::options_form in plugins/
views_oai_pmh_plugin_row_etdms.inc - Provide a form for setting options.
File
- theme/
views_oai_pmh.theme.inc, line 156 - Theme related functions for processing our output style plugins.
Code
function theme_oai_field_mapper_form($vars) {
$form = $vars['form'];
foreach (element_children($form) as $key) {
$rows[] = array(
drupal_render($form[$key]['drupal_label']),
drupal_render($form[$key]),
);
}
$header = array(
t('Drupal field label'),
t('Dublin Core element name'),
);
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
));
$output .= drupal_render_children($form);
return $output;
}