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.
Problem/Motivation
Currently, Mailchimp signup forms urls are hardcoded through hook_menu()
. This has a few disadvantages:
- It limits integration with contrib modules that complement Mailchimp signup forms, such as ctools_automodel
- It limits options for localizing URLs for different languages.
- (Re-) building the menu router requires loading all Mailchimp signup forms. For larger sites this can cause a performance hit.
- It requires custom logic for menu rebuilding when updating Mailchimp signup forms.
Proposed resolution
Use wildcard loading for building signup forms (eg. 'mailchimp_signup/%mailchimp_signup') and rely on the {url_alias} table to provide pretty urls.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
The 'path' setting has been moved to a separate field and has an option to automatically generate an alias when the pathauto module is enabled. The new url alias is still available through an upgrade path.
API changes
None.
Data model changes
The 'path' setting has been moved to a separate field and is no longer saved with the Mailchimp signup entity.
Comments
Comment #2
idebr CreditAttribution: idebr at One Shoe commentedComment #3
samuel.mortenson@idebr We’re in maintenance-mode for the Drupal 7 releases of Mailchimp, so only bug fixes or low-impact features can be added. Any new features should be developed for the Drupal 8 releases of Mailchimp. Thanks!