I noticed there is elgg_register_js so I was wondering just like you unregister an action. I am using elgg 2.3.0.
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.
- iionly@iionly
iionly - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
- Alejandro@dveloper
Alejandro - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 1 like
You must log in to post replies.elgg_unregister_js() (see http://reference.elgg.org/elgglib_8php.html#a66074d97e12767161875096e5f690829)
Just because some JS is 'registered' doesn't mean it's being used. That's what 'elgg_load_js()' is for
Thank you. I learned how to unregister the js and load the register js using elgg_load_js. I noticed that the new versions of elgg are more inclined to use elgg_require_js.
Depending on what you are trying to do and what the module's output is.
You can either 1) replace the module's view with a module that does nothing, 2) require the module and overwrite it's value with your own.