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.
I think settings should be passed locally to Drupal's JavaScript behaviors rather than using the global Drupal.settings variable.
Comment | File | Size | Author |
---|---|---|---|
#1 | chosen-settings_behavior-1609036-1.patch | 1.05 KB | aheredia |
Comments
Comment #1
aheredia CreditAttribution: aheredia commentedThis is the patch
Comment #2
aheredia CreditAttribution: aheredia commentedComment #3
shadcn CreditAttribution: shadcn commentedThanks. Any reason against using Drupal.settings?
Comment #4
aheredia CreditAttribution: aheredia commentedIt's commented in Managing JavaScript in Drupal 7.
It's a change made in drupal api 7 Converting 6.x modules to 7.x
Greetings
Comment #5
shadcn CreditAttribution: shadcn commentedThanks
Comment #6
Dave ReidRe-rolled and committed #1 to 7.x-2.x. http://drupalcode.org/project/chosen.git/commit/55ba20f