drupal_add_js(array('UserTitlesImageURL' => base_path() ."$path/delete.gif"), 'setting');

To make the array keys more unique(per module), it can be good to use:

array('userTitles' => array('imageURL' => base_path() ."$path/delete.gif"))

and access it in JS as: Drupal.settings.userTitles.imageURL

Really minor but couldn't resist. :P

Comments

Gurpartap Singh’s picture

Oops, the above patch included the other patch related to Delete image src path.

merlinofchaos’s picture

Status: Needs review » Fixed

Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)