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.
Currently, ajax_load merges settings data returned by ajax requests into the existing Drupal.settings object. In some cases, however, external modules may have specific needs for handling settings data. This is the case with the Popups module; see #336641: Auto-load needed JS and CSS files (and settings).
So we need a way for modules to indicate that they will use a custom method for settings handling.
Comments
Comment #1
nedjoAdded support for a __customSettings flag. If this flag is set on the JSON response object, ajax_load will not load settings but instead leave any handling to another module.
Comment #2
nedjo