Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since the bef_checkbox()
function is responsible for generating actual HTML output, it makes sense to make it a theme function that can be overridden through normal means.
Comment | File | Size | Author |
---|---|---|---|
#11 | 1404656_better_exposed_filters_checkbox_reroll_again.patch | 2.51 KB | cmonnow |
#8 | 1404656_better_exposed_filters_checkbox_reroll.patch | 2.44 KB | bogdan.racz |
#1 | 1404656_better_exposed_filters.patch | 3.6 KB | Les Lim |
Comments
Comment #1
Les LimPatch attached.
Comment #2
Les LimThis is related to #1344650: BEF for taxonomy terms with image fields
Comment #4
kingandy CreditAttribution: kingandy commentedIs there a particular reason this function doesn't use theme_checkbox and theme_form_element_label to generate its HTML?
Comment #5
kingandy CreditAttribution: kingandy commented... Actually, there's no need to call theme_form_element_label separately, theme_form_element will add it automatically if we just add the appropriate #title and #title_display properties to the $properties array.
Comment #6
le72So, do we have any solution?
Comment #7
le72#1: 1404656_better_exposed_filters.patch queued for re-testing.
Comment #8
bogdan.racz CreditAttribution: bogdan.racz commentedRerolled the patch
Comment #9
zmove CreditAttribution: zmove commented+1, very basic need. Solid patch, 7 month old... should be commited ASAP.
Comment #10
cmonnow CreditAttribution: cmonnow commentedComment #11
cmonnow CreditAttribution: cmonnow commentedI've rerolled the patch again and set the issue to "critical" since it seems the suggested changes (on the surface at least) will have few, if any, serious side effects on existing installations yet will greatly simplify theming requirements (and more importantly, let developers override checkbox theming the expected/Drupal way).
Comment #12
mikeker CreditAttribution: mikeker as a volunteer commented@cmonnow: Please keep some perspective: feature requests are rarely, if ever, major and are never critical. I appreciate the reroll and will review it as soon as possible.
Comment #13
mikeker CreditAttribution: mikeker as a volunteer commented#11 with fixes for whitespace errors and an edited version of hook_update_N from #1 has been committed.
Thank you, everyone, for your work on this and your patience!