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
Post a Comment