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.
When using ctools modals with forms, we have to manually set the title. Why not use a default of drupal_get_title()? Then all we need is to put the title in the form's menu callback or call drupal_set_title() in the form callback itself.
Comment | File | Size | Author |
---|---|---|---|
#2 | 891682-ctools-modal-default-title.patch | 891 bytes | Dave Reid |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThat's a darn good question. I'd make it a fallback so it doesn't overwrite a title that's explicitly set, but I can't think of a single reason not to do that.
Comment #2
Dave ReidThis greatly helped a mass implementation of modals in XML sitemap. Ready for review.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted!