Similar to #1021394: Hide apply button when no filters are shown I would like to hide the reset button if all the filters have been hidden by VFS. Unfortunately this is not so easy, because both use hook_form_FORMID_alter, but altering the module weight to be higher than VFS i managed to do it.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1021430-views_filters_reset-hide-reset.patch | 1.23 KB | snufkin |
Comments
Comment #1
snufkin commentedPatch and install file (stupid CVS doesnt allow me to create a diff for new files if i dont have commit access).
Comment #2
infojunkieCommitted to the latest dev. Please try it 12 hours from now and let me know if it works for you.
Comment #3
roball commentedNice functionality - that is also similar to what i tried in #913410: Only show Reset button when there is actually something to reset: Hide reset button when no filters have been used. maybe you can come up with a better approach?
Comment #4
roball commentedI have just updated to Views Hacks 6.x-1.x-dev (2011-Jan-11), and
drush updbsaidDoes this look correct?
Comment #5
snufkin commentedyes, the db update doesnt replace the arguments when it displays the query. I tested it and it worked just fine.