Syndicate content

views

Mark Jarrell's picture

Adding a Reset Button to Exposed Views Filters

I'm a big fan of using exposed filters in my administrative views that I build. One thing that had escaped me until today was that there isn't always a really easy way for my users to get back to square one. I need a reset button. Don't we all? I did some searching around and some experimenting. It turns out that you can do this really easily in a custom module just using a hook_form_alter(). You can see the result in the screenshot below. Easy reset button.