I have added a new jQuery json plugin to the js_libraries folder and created the json.info file. In the info file, name is given as jquery_json and the same name is displayed in the JavaScript libraries screen also. But when I try to add the JavaScript library using drupal_add_js_library("jquery_json"), the library is not getting included. But when I try to include using drupal_add_js_library("json"), the library is included.

Do we need to use the name in the info file or the name of the info file?

Comments

skilip’s picture

Sorry for really, really late responding. Still experiencing this issue?

skilip’s picture

Status: Needs work » Closed (fixed)