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

nedjo’s picture

Status: Active » Fixed

Added 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.

nedjo’s picture

Title: Allow other modules to exempt themselves from settings handling » Allow other modules to opt out of ajax_load settings handling

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.