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 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 commentedCommitted!