Is there any way to add some variables to Drupal.settings
without drupal_add_js
(with setting
argument).
I'm creating a site that has a custom ctools popup style but I'm not feeling good with drupal_add_js
. How can I add this JavaScript snippet to the page using the theme's .info
page ? I'm not sure how can I merge my custom variables (literally, they are just static) to Drupal.settings so ctools module can pick them up as it was added via regular drupal_add_js
call.
Thank you in advance.
drupal_add_js
or an#attached
property on a render array – Clive♦ Sep 26 '13 at 7:55Drupal.settings
? That would be pretty cool – Clive♦ Sep 26 '13 at 8:15