function tripal_views_handler_filter_sequence::value_form

2.x tripal_views_handler_filter_sequence.inc tripal_views_handler_filter_sequence::value_form(&$form, &$form_state)
3.x tripal_views_handler_filter_sequence.inc tripal_views_handler_filter_sequence::value_form(&$form, &$form_state)
1.x tripal_views_handler_filter_sequence.inc tripal_views_handler_filter_sequence::value_form(&$form, &$form_state)

Options form subform for setting options.

This should be overridden by all child classes and it must define $form['value']

Overrides views_handler_filter::value_form

See also

options_form()

1 call to tripal_views_handler_filter_sequence::value_form()
tripal_views_handler_filter_sequence::exposed_form in tripal_views/views/handlers/tripal_views_handler_filter_sequence.inc
Ensures the upload field gets rendered when the filter is exposed. It also changes the form type from a GET to a POST so that file uploads will work.

File

tripal_views/views/handlers/tripal_views_handler_filter_sequence.inc, line 18
Contains tripal_views_handler_filter_sequence Filter handler

Class

tripal_views_handler_filter_sequence
This Handler provides a file upload field by extending the views_handler_filter object.

Code

function value_form(&$form, &$form_state) {
  parent::value_form($form, $form_state);

  $this->value_form = array(
    '#type' => 'sequence_combo',
    '#title' => t('%label', array('%label' => $this->options['expose']['label'])),
    '#default_value' => $this->value,
    '#multiple' => FALSE,
  );
  $form['value'] = &$this->value_form;
}