Submitted by newaction on Tue, 2012-07-10 11:21
# In any hook_init().
drupal_add_js(array( 'citris' => array( 'basePath' => base_path(), ), ), 'setting');
#In any js inside Drupal
uri = Drupal.settings.citris.basePath + "mypath";
- Login to post comments