You are here

function views_handler_filter_tag_font_tid::value_validate in @font-your-face 7

Same name and namespace in other branches
  1. 6.2 views/views_handler_filter_tag_font_tid.inc \views_handler_filter_tag_font_tid::value_validate()
  2. 7.2 modules/fontyourface_ui/views/views_handler_filter_tag_font_tid.inc \views_handler_filter_tag_font_tid::value_validate()

Validate the options form.

Overrides views_handler_filter::value_validate

File

views/views_handler_filter_tag_font_tid.inc, line 137
Views handler.

Class

views_handler_filter_tag_font_tid
Filter by tag id. Largely copied from views_handler_filter_term_node_tid.inc

Code

function value_validate($form, &$form_state) {
  if ($this->options['type'] != 'textfield') {
    return;
  }

  // if
  $values = drupal_explode_tags($form_state['values']['options']['value']);
  $tids = $this
    ->validate_tag_strings($form['value'], $values);
  if ($tids) {
    $form_state['values']['options']['value'] = $tids;
  }

  // if
}