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.
API page: https://api.drupal.org/api/drupal/developer%21topics%21forms_api_referen...
the theme function theme_fieldset don't use the "#title_display" attribute. as mentioned in the documentation.
Comments
Comment #1
jhodgdonThat is true. Moving this issue to the documentation project, since that is where the Form API reference document exists.
Comment #2
heddnIs this a doc update or a defect? I'd really like to hide the fieldset title using this functionality and was pretty excited that I could only find out that it doesn't actually work.
Comment #3
jhodgdonIf you want to hide the title, use a preprocess function and remove #title.
The rest of the options in #title_display do not seem relevant to fieldsets... and at this point in D7, there is nearly zero chance that the code would be changed.
Comment #4
krina.addweb CreditAttribution: krina.addweb at AddWeb Solution Pvt. Ltd. commented