Hello,
Here is what I'm trying to do:
elgg_register_plugin_hook_handler('login:forward', 'user', function (\Elgg\Hook $hook) {
if($forward_url = $hook->getParam('forward')) {
return $forward_url;
}
}
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
You must log in to post replies.See the function _elgg_get_login_forward_url() in vendor/elgg/elgg/engine/lib/sessions.php to understand what variables the hook is called with. The parameter array has no 'forward' attribute defined. Try
Or use the existing attributes of the params aray (request, user, source) if needed to achive what you have in mind.