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.
In order to support D7's #states, and to also allow end-users to pass through custom classes and attributes to the base-level
, it would be nice if we actually used $element['#attributes'].
Patch is made with #1966852: Wrap options manual entry in a container and not a fieldset assumed being committed.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1980824-options-element-support-attributes.patch | 1.27 KB | Dave Reid |
Comments
Comment #1
Dave ReidComment #2
Dave ReidCommitted #1 with a couple of tweaks to use the standard element_set_attributes() and _form_set_class() functions.
http://drupalcode.org/project/options_element.git/commit/dd8ead2