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

merlinofchaos’s picture

Status: Active » Fixed

The 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.

voipfc’s picture

I 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?

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.