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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | views_20070504_filter_values.patch | 885 bytes | mfredrickson |
| views_20070503_process_filter_values.patch | 878 bytes | mfredrickson |
Comments
Comment #1
merlinofchaos commentedLet's go with if (!isset($input)) which apparently is basically the Drupal standard.
Comment #2
mfredrickson commentedOk. New patch with !isset(). Tested and works just as before.
Comment #3
merlinofchaos commentedApplied to the 5.x branch.
Comment #4
merlinofchaos commentedComment #5
(not verified) commented