You are here

function biblio_handler_field_biblio_render::options_form in Bibliography Module 7.3

Provide form to select a field name to render.

Overrides views_handler_field::options_form

File

includes/views/handlers/biblio_handler_field_biblio_render.inc, line 28
Contains the message field handler.

Class

biblio_handler_field_biblio_render
Views field handler for rendering a bilbio.

Code

function options_form(&$form, &$form_state) {
  $options = array();
  foreach (biblio_get_biblio_styles() as $plugin_name => $plugin) {
    $options[$plugin_name] = $plugin['title'];
  }

  // Get all the text fields attached to a message-type.
  $form['style_name'] = array(
    '#type' => 'select',
    '#title' => t('Style name'),
    '#description' => t('Select the style name to render.'),
    '#options' => $options,
    '#default_value' => $this->options['style_name'],
    '#required' => TRUE,
  );

  // @todo: Allow each plugin to define views options.
  parent::options_form($form, $form_state);
}