You are here

function views_handler_filter_user_relationships_type::value_validate in User Relationships 7

Same name and namespace in other branches
  1. 6 user_relationship_views/views_handler_filter_user_relationships_type.inc \views_handler_filter_user_relationships_type::value_validate()

Validate the options form.

Overrides views_handler_filter::value_validate

File

user_relationship_views/views_handler_filter_user_relationships_type.inc, line 30
User Relationships Views integration. Filter handler for relationship types, with autocomplete for type names. Modeled after views_handler_filter_user_name. @author Alex Karshakevich http://drupal.org/user/183217

Class

views_handler_filter_user_relationships_type
@file User Relationships Views integration. Filter handler for relationship types, with autocomplete for type names. Modeled after views_handler_filter_user_name. @author Alex Karshakevich http://drupal.org/user/183217

Code

function value_validate($form, &$form_state) {
  $values = drupal_explode_tags($form_state['values']['options']['value']);
  $rtids = $this
    ->validate_type_strings($form['value'], $values);
  if ($rtids) {
    $form_state['values']['options']['value'] = $rtids;
  }
}