Problem/Motivation
User name filter description("Enter a comma separated list of user names.") is always render even when filter exposed and user have provided specific description.
Proposed resolution
Make description behave same way as other filters do: visible on filter configuration form, replaced by user provided description on exposed filter form.
Remaining tasks
- Review patch
- Commit
User interface changes
No more hard-coded "Enter a comma separated list of user names." help text on user name exposed filter.
API changes
None.
Original description
Hi,
I have an exposed filter in my view for the user name and I would like to to remove the descriptive text beneath this form element
EG the User name form element, then directly below this you would find .... 'Enter a comma separated list of user names.'
This is the text i wish to remove, but for the life of me I cant find where?
Thanks for your advice
Cheers
Luke
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | views-improve_user_name_filter_behavior-1700194-7.patch | 1.07 KB | andrew answer |
| #5 | views-1700194-5.patch | 1.27 KB | rosk0 |
| #4 | views-1700194-1.patch | 1.27 KB | rosk0 |
Comments
Comment #1
fadgadget commentedhi i was wondering how to do this too. anyone?
thanks
Comment #2
jvandyk commentedA quick and dirty way to do it is to define that specific string to be empty in your settings.php. Doing this will make you feel unclean, though.
The correct way to do this is to implement hook_form_views_exposed_form_alter() or at the theme level with a preprocess function or a custom tpl.php. By all means do not do it the way I show above. You don't want things like this living in your settings.php.
Comment #3
suresh7787 commentedy dont u try to use css to hide that text?. Select that div and use css properties hide it like display:none.
Comment #3.0
suresh7787 commentedUpdated the descriptive text
Comment #4
rosk0Updating title, description, version and providing patch for review.
Comment #5
rosk0Same patch for test bots.
Comment #6
chris matthews commentedThe 2 year old patch in #5 to views_handler_filter_user_name.inc does not apply to the latest views 7.x-3.x-dev and if still relevant needs to be rerolled.
Comment #7
andrew answer commentedPatch rerolled.