You are here

function views_oai_pmh_plugin_row_auto::options_form in Views OAI-PMH 7.2

Same name and namespace in other branches
  1. 6.2 plugins/views_oai_pmh_plugin_row_auto.inc \views_oai_pmh_plugin_row_auto::options_form()

Provide a form for setting options.

Overrides views_plugin_row::options_form

File

plugins/views_oai_pmh_plugin_row_auto.inc, line 132
Definition of the views_oai_pmh_plugin_row_auto class.

Class

views_oai_pmh_plugin_row_auto

Code

function options_form(&$form, &$form_state) {
  $form['oai_auto_labels'] = array(
    '#type' => 'fieldset',
    '#title' => t('Automatic OAI type detection'),
  );
  $form['oai_auto_labels']['info'] = array(
    '#markup' => '<p>In order for the automatic OAI type detection to work, the Drupal fields for each data format below must be assigned to their respective OAI element names.</p>',
  );
  if ($this
    ->_check_row_objects()) {

    // Extend our form with the additional fields prescribed by each row style object.
    foreach ($this->_row_objects as $key => $obj) {
      $obj
        ->options_form($form, $form_state);
    }
  }
  return NULL;
}