This ultra simple patch adds a default parameter to _views_get_filter_values(). With this input param, other code can call _views_get_filter_values with data other than $_GET and have this code process it.

I realized I was duplicating this function in the views node selector form element, so I thought I could unify the code base with a little patch.

I'm marking as RTBC as it is a tiny patch.

Comments

merlinofchaos’s picture

Let's go with if (!isset($input)) which apparently is basically the Drupal standard.

mfredrickson’s picture

StatusFileSize
new885 bytes

Ok. New patch with !isset(). Tested and works just as before.

merlinofchaos’s picture

Applied to the 5.x branch.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)