Back to Top

Hook Form Alter

Add placeholder text to Views Exposed Filter

I see this question pop up all the time, it's probably a good candidate for a module, but until then here is a simple way to add 'placeholder' text to an exposed form in Drupal Views.

Add this snippet to your template.php file:

Subscribe to RSS - Hook Form Alter