jrCore_register_event_listener('jrCore', 'module_view', 'myModule_module_view_listener');
function myModule_module_view_listener($_data, $_user, $_conf, $_args, $event)
{
fdebug("If this appears in the log then myModule_module_view_listener is working",$_data, $_user, $_conf, $_args, $event);
return $_data;
}
function myModule_module_view_listener($_data, $_user, $_conf, $_args, $event)
{
// want to hijack the form success display in jrUser and redirect to a myModule view
if ($_data['_uri'] == '/user/signup'){
jrCore_location($_conf['jrCore_base_url'].'/'.jrCore_get_module_url('myModule').'/contact_us_by_phone');
}
return $_data;
}
jrCore_location($_conf['jrCore_base_url'].'/contact_us_by_phone');