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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -