Hello,
In one of my views, I set the fields as a filter. I now resize the size of those above. To do this, I would have found the function to act on these fields.
The attached image should help you better understand my problem ...
Thank you in advance for your help.
Comments
Comment #1
Clément commentedI just found the solution: use css but still it might be interesting to know the code, which would allow myself, for example, rename fields, etc..
Comment #2
merlinofchaos commentedYou can use hook_form_alter() to modify the form.
Comment #3
Clément commentedThank you for your reply, I'll try it.
Greetings.
Clement
Comment #4
Clément commentedI found the solution with form_views_exposed_form_alter:
Comment #5
somebodysysop commentedWhere do I find the form ID?:
I read somewhere it is referred to as the views-exposed-form-view-id-display-id, but I have yet to discover how to find it. Can anyone help, please?
Comment #6
merlinofchaos commentedIt is just views_exposed_form but you can then check $form_state['view'] to see which view it is.
Comment #7
somebodysysop commentedThanks. Found it using:
drupal_set_message('
');
and, searching for #ID. An it is views_exposed_form.
Comment #9
noocx commentedYou can find it in the page source if you inspect the form:
<form id="views-exposed-form-YOURVIEWNAME-YOURDISPLAY"..or from PHP:
dsm($form['#id']);Comment #10
appbros commentedWhere did you find the file to edit this form? I really need to fix this problem so any help would be great. Same exact problem as you.
Comment #11
ragavendra_bn commented@Clément -- Can you show the css change you made as I also need to make a similar one. I tried like adding below in the style.css but no luck. Thanks in advance.
Comment #12
ragavendra_bn commentedNever mind, I figured out the css part as it needs to be in style.css for the bartik theme users. Yet would be nice to know as to where to put it in the MODULE_NAME_form_views_exposed_form_alter
Comment #13
gshreegs commented#12, you can add this in the .module file of your module folder. This is the file we use to add the hook_form_alters, and other hooks.