Active
Project:
Multi-column checkboxes radios
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2010 at 10:46 UTC
Updated:
12 Aug 2011 at 22:02 UTC
I'm trying to split up a column of checkboxes of an exposed filter from a view (I used Better Exposed Filters to create the checkboxes). I've read the readme but Drupal is pretty new to me so it's a bit over my head. I'm not sure if I need to add code and if so where. Do I need to edit/override a form in the views module somewhere? Is there a verbose example I can follow somewhere?
Thanks.
Comments
Comment #1
mattyoung commentedUse hook_form_alter() or hook_form_FORM_ID_alter() to alter the form views creates, add the multicolumn parameters to the expose filter checkboxes.
Comment #2
figs commentedThanks for the reply. Does this get done in a views php template file somewhere?
Comment #3
mattyoung commentedYou write a module and implement the form_alter() there.
Comment #4
mattyoung commented~
Comment #5
arpieb commentedTried the above suggestion against the following Views exposed filter form, also using the BEF module:
Using the following hook_form_alter callback (form ID verified with normal hook_form_alter):
No love. It appears that the BEF module is altering the form using hook_form_alter to add a callback to the #theme option of the form element, and the multicolumncheckboxesradios code appears to be adding a callback to the #process option.
I'm not 100% up on my FAPI callback execution order (#process vs #theme), but might this be why it isn't working?