I wanted to create a filter function same as isAdmin for a different role. Is there any way that we can duplicate the engine/lib/users.php in mod/some_theme/engine/lib/users.php as we do for views.
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
- Jijo Joseph@jijojoseph

Jijo Joseph - 0 likes
- Team Webgalli@webgalli

Team Webgalli - 0 likes
You must log in to post replies.short answer... no
I don't know of any way of modifying the core classes without hacking the core, or extending the classes with your own. Can you not use a global function for it?
Thanks for the quick reply.
let me know where will I define/create a global function?. (Since I'm new to elgg, sorry, if this is silly)
start.php of your plugin. You can register your functions in a seperate library and can load it as and when needed using elgg_register_lib() and elgg_load_lib(). Take a look at some core plugins.