Hi everyone.
If I use elgg_register_js(.....) in a plugin, Can I use elgg_load_js in a view of another plugin?
Thanks...
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24

Matt Beckett - 0 likes
- Frank García@garlofrank

Frank García - 0 likes
You must log in to post replies.Absolutely.
The only thing to keep in mind is if the plugin supplying the js is deactivated then there will be nothing to load. If this is something that's required then you can declare the second plugin as being dependent on the first in the manifest.xml
It'll look something like this:
Thanks Matt, then I'm doing something wrong in one of my plugins. I'll try to find my error.