I'm deep into my own overriding of theme_form_element(), looking at the $element array, in the hopes that I can target some key therein to churn into the form item container's class, so that I can target radio button groups (or any other values-enabled form element for that matter) via CSS.
For instance, if I have a Values set named "yes_no", I'd like - via my own mods to theme_form_element() - to be able to target via CSS a form-item wrapper/container that also includes a class of "values-yes-no", so I can theme out identically ALL occurrences of fields that use the "yes_no" Values set on the form.
Trouble is, I don't see any data in $element that I could use to identify a field as "values"-enabled.
Am I missing something? Or can this be added?
Thanks!
Comments
Comment #1
drclaw commentedThe values module just replaces the allowed values list. It doesn't generate the output. Try looking at theme_radio for your situation (https://api.drupal.org/api/drupal/includes%21form.inc/function/theme_rad...)