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.
Fieldsets in D7 don't get the element id, I am using some code from your great theme (the fieldset stuff is great) but I needed fieldset id:
$vars['attributes']['id'][] = $element['#id'];
etc..
Comment | File | Size | Author |
---|---|---|---|
#6 | fieldset-ids-tao-1105086-4726822.patch | 780 bytes | timcosgrove |
#4 | fieldset-ids-tao-1105086-4726822.patch | 739 bytes | timcosgrove |
Comments
Comment #1
KarlShea+1
This breaks FAPI #states settings since it needs the ID of the fieldset, which doesn't get written out.
Comment #2
emosbaugh CreditAttribution: emosbaugh commented+1
this may be better. not sure
Comment #3
timcosgrove CreditAttribution: timcosgrove commentedAttaching a patch that solves this problem. It restores both id and the class .form-wrapper, both of which are necessary for states.js to operate correctly on fieldsets.
Comment #4
timcosgrove CreditAttribution: timcosgrove commentedPatch attached.
Comment #5
timcosgrove CreditAttribution: timcosgrove commentedThis is most definitely a bug; changing status to reflect such.
Comment #6
timcosgrove CreditAttribution: timcosgrove commentedModified the patch to check for the existence of $element['#id'] before attempting to apply it.
Comment #7
CoffeyMachine CreditAttribution: CoffeyMachine commentedLooks good to me, committed to 7.x-3.x branch. Thanks
Comment #8
dgastudio CreditAttribution: dgastudio commentedi'm sorry but this patch is not commited to version for download available on project page.
Comment #9
Akshita CreditAttribution: Akshita commentedSorry this is not the right place for this issue.
Can anyone help me in disabling the Login link on the home page .(Openpublic Drupal 7).
Thanks
Revathi