This question already has an answer here:
I use this but cannot find solution.
drupal_add_js(
array('YOURMODULE' => array(
'testvar' => $testvar
)),
array('type' => 'setting')
);
This question already has an answer here: I use this but cannot find solution.
|
||||
marked as duplicate by Mołot, Anil Sagar, Letharion, Елин Й., Bala Oct 2 '14 at 2:56This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. |
||||
|
Check the object Drupal.settings using Firebug. Or insert the code into your a js file.
|
|||
|