Closed (fixed)
Project:
Libraries API
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2012 at 22:17 UTC
Updated:
19 Jun 2015 at 12:46 UTC
Jump to comment: Most recent
Comments
Comment #1
jm.federico commentedAh, and if so, if any one of you could provide an example. Thankx
Comment #2
Solthun commentedNot sure if this is what you meant exactly but this is an example that works:
http://api.drupal.org/api/drupal/includes!ajax.inc/group/ajax/7#comment-...
Comment #3
jm.federico commented@Solthun
Thanks for the link, it works with libraries registered with Drupal Core library functionality, but can't get it to work with libraries registered with Library Api module.
Cheers
Comment #4
jelle_sYes it's possible:
So, in short, just add a
libraries_loadkey to your#attachedarray, with as value an array of parameters to pass to libraries_load().Comment #5
jm.federico commentedThanks!!!!!
Comment #7
jaypanNote that this:
Should be this:
Comment #8
jelle_s@Jaypan:
No it should not ;-)
See drupal_process_attached():
The second argument to call_user_func_array() should be an array :-).
Comment #9
jaypanOh, you're right. I had an additional array layered in my code I was working on.