function Name::value_validate in Views (for Drupal 7) 8.3
Validate the options form.
Overrides FilterPluginBase::value_validate
File
- lib/
Views/ user/ Plugin/ views/ filter/ Name.php, line 56 - Definition of Views\user\Plugin\views\filter\Name.
Class
- Name
- Filter handler for usernames.
Namespace
Views\user\Plugin\views\filterCode
function value_validate($form, &$form_state) {
$values = drupal_explode_tags($form_state['values']['options']['value']);
$uids = $this
->validate_user_strings($form['value'], $values);
if ($uids) {
$form_state['values']['options']['value'] = $uids;
}
}