Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2008 at 21:38 UTC
Updated:
1 Apr 2008 at 23:16 UTC
In case some users do not enter filter field properly, I want to able to examine the URL passed and modify some values in case they are blank and replace them with defaults or best guesses so that the filters return meaningful results. eg. if some numeric values for searching ranges are blank, replace with minimum and maximum values for the results to be correct.
What is the best way to do this?
Comments
Comment #1
merlinofchaos commentedThe only way to do this would be to implement a module with hook_init, look into $_GET at the fields and modify them directly, before Views has a chance to process them.
Comment #2
voipfc commentedI am not familiar with Drupal internals, where would the best place be to do that?
It means the module have to examine all URLs regardless of whether they were for Views or not?
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.