Hi all,
I am building a simple little extension that currently uses the “entry_submission_redirect” hook. This works beautifully… except I would like to add in a “$.ee_notice” once the re-direct has happened.
My “entry_submission_redirect” function currently looks like this… nice and simple…
function entry_submission_redirect($entry_id, $meta, $data, $cp_call)
{
$this->EE->javascript->output('
$.ee_notice("Test notice", {"type" : "success"});
');
return BASE."&D=cp&C=content_publish&M=entry_form&channel;_id=".$meta['channel_id']."&entry;_id=".$entry_id;
}I am figuring that I have gotten the placement of the $.ee_notice wrong… but where do i put it? Is there another hook that I need to call?
Any help is appreciated.
Cheer.
[Mod Edit: Moved to the Extensions: Discussion and Questions forum]
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.