You are here

function theme_views_oai_pmh_field_mappings_form in Views OAI-PMH 7.3

Themes the field mappings form.

1 theme call to theme_views_oai_pmh_field_mappings_form()
views_oai_pmh_plugin_style::options_form in plugins/views_oai_pmh_plugin_style.inc
Provide settings for this plugin.

File

./views_oai_pmh.theme.inc, line 11
Theme functions for Views OAI-PMH.

Code

function theme_views_oai_pmh_field_mappings_form($variables) {
  $rows = array();
  foreach (element_children($variables['form']) as $field_name) {
    $title = $variables['form'][$field_name]['#title'];
    unset($variables['form'][$field_name]['#title']);
    $rows[] = array(
      $title,
      drupal_render($variables['form'][$field_name]),
    );
  }
  $header = array(
    t('View field'),
    t('Output element'),
  );
  return theme('table', array(
    'header' => $header,
    'rows' => $rows,
  ));
}