Hi everyone.
I'm Newbie in elgg. I need your help.
I must override an existing file that located in lib directory of plugin in my plugin. I've learned how can I override css or view file in my plugin but nowhere talks about overriding lib dirctory of one plugin.
for example I installed pluginA into my project and I wanna override the lib directory of this plugin in my plugin.
Plz help me !!!!
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.
- Team Webgalli@webgalli
Team Webgalli - 0 likes
- Mark@Zander1983
Mark - 0 likes
- mohammad@mhipo
mohammad - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 0 likes
You must log in to post replies.You cant override the files located inside lib folder. If you are looking to replace the page handlers then use elgg_unregister_page_handler() and then register new pagehandler for the corresponding paths with elgg_register_page_handler()
PS : Avoid duplicate threads.
You dont override a library, just dont load it. There will be calls to elgg_register_library() and elgg_load_library() in the plugin. Just comment them out. The plugin probably wont work then so follow that procedure to register and load your new library.
Thank you Team Webgalli and Mark.
also, if the library is registered using elgg_register_library() you can simply call elgg_register_library with the same identifier and point it to your new file. Then whenever elgg_load_library is called it will be your library that's loaded instead.