You are here

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

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

File

views/views_handler_filter_tag_font_tid.inc, line 133
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
}