Hi,
upgrading Simple Registration from EE2 to EE3 I had to deprecate some functionality, specifically JSON response for errors on registration and the ability to skip the standard EE user messages.
I’d like to ask for a hook in Output->show_message() that get the $data array and that can end the execution before the final;
echo stripslashes($row['template_data'] );
exit;
The “User Message” functionality of EE has always been something many users want modified/removed, whether it be during registration or any other form that will give you the standard EE error message - so I think something that enables this would be useful for many add ons/users.
Hey Bjørn,
Sorry for the delay. I think we can add this hook for you. What if we replace those last couple of lines in show_message with this:
$output = stripslashes($row['template_data']);
if (ee()->extensions->active_hook('output_show_message') === TRUE)
{
$output = ee()->extensions->call('output_show_message', $data, $output);
}
echo $output;
exit;
Does that do what you need? Then you can just return whatever output data you want from the hook.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.