php - Drupal function basic usage -


i learning drupal , found using

drupal_add_js( array('philquotes' => array("json_url" => $json_url)), 'setting'); 

and says converted

drupal.settings.philquotes.json_url 

and used pass php variable js. got doubt used create js variable in php can accessible in js or other meaning there in ?

drupal_add_js function can used add setting, can used add file or inline javascript. drupal has documentation in api. see drupal_add_js documentation @ http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_add_js/7


Comments

Popular posts from this blog

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

jQuery Ajax Render Fragments OR Whole Page -

javascript - Iterate over array and calculate average values of array-parts -