You are here

function flexiform_handler_filter_tags::value_validate in Flexiform 7

Validate the options form.

Overrides views_handler_filter::value_validate

File

includes/views/handlers/flexiform_handler_filter_tags.inc, line 65
Contains handler for tags filter on flexiform views.

Class

flexiform_handler_filter_tags
@file Contains handler for tags filter on flexiform views.

Code

function value_validate($form, &$form_state) {

  // We only validate if they've chosen the text field style.
  if ($this->options['type'] != 'textfield') {
    return;
  }
  $values = drupal_explode_tags($form_state['values']['options']['value']);
  $form_state['values']['options']['value'] = $values;
}