function theme_oai_field_mapper_form in Views OAI-PMH 7.2
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 theme/views_oai_pmh.theme.inc \theme_oai_field_mapper_form()
3 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.
- views_oai_pmh_plugin_row_misc::options_form in plugins/
views_oai_pmh_plugin_row_misc.inc - Build the Views options form.
File
- theme/
views_oai_pmh.theme.inc, line 272 - 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('OAI type element name'),
);
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
));
$output .= drupal_render_children($form);
return $output;
}