Hello,
This patch corrects a mistake with hiphens ("-") usage (due to PHP function str_replace replacement order) and can blacklist or whitelist exposed filters forms from the views module (for instance "views-exposed-form-archive-page" if you have exposed filters inside a view named "archive" with display type "page").
Best regards.
Guillaume
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | dirtyforms-hyphens-1060582-4.patch | 1.4 KB | jacob.embree |
| dirtyforms.module.patch | 955 bytes | Barberousse |
Comments
Comment #1
mcurry commentedsubscribe
Comment #2
mcurry commentedCorrecting typo in issue title. 'hiphens' => 'hyphens' (searching for the correct spelling showed 0 results in issue queue...)
Comment #3
mcurry commentedPatch worked for me.
Comment #4
bshensky commentedActually, the help text in the admin/settings for this module has copy that reads "hiphens", and it obviously should be "hyphens". It's just copy, but...
Comment #5
jacob.embree commentedstr_replace()is performing its replacement on one of the characters in its second argument. The intention is to allow the rule to contain either hyphens or underscores in the form ID. At least on Drupal 7, (I think D6 too) the form ID being matched against will never have hyphens in it, so it is safe to ignore underscores and replace hyphens with underscores before the comparison. This patch