Remove Validation for the User: Name filter

vivianspencer - June 23, 2009 - 23:34
Project:Views
Version:6.x-2.6
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Is there any way to remove, skip or override the validation check on the User: Name filter for views.

I can see where the function is being called in views_handler_filter_user_name.inc and the only way I can think to do it (without hacking the module) is to use hook_form_alter and remove the call to 'views_exposed_form_validate' and thencreate my own validation function, but this may just cause other problems.

#1

dereine - July 3, 2009 - 17:40

thats not the only way :)

you can use hook_views_data_alter and change the handler of the filter to change the behavior of the validation

 
 

Drupal is a registered trademark of Dries Buytaert.