‘entry_submission_redirect’ hook support
Posted: 27 October 2010 06:41 AM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  68
Joined  2010-09-07

Hi guys,

I posted on http://expressionengine.com/forums/viewthread/171095/ about a hook not being run.

Rob, you said that SafeCracker doesn’t use the hook, but have a look at their response:

“Please ask SafeCracker to include the ‘entry_submission_redirect’ hook in their application (even if they ignore the actual redirect) as this is vital to Membrr and other modules. Adding it should be a piece of cake.”

Also see:
http://help.electricfunction.com/discussions/membrr-for-ee/150-channel-protection-not-limiting-to-one-entry

Thanks for all your continued help…

Profile
 
 
Posted: 27 October 2010 08:29 AM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Make sure you have the latest version from today. Open up safecracker_lib.php, around line 1204 you’ll find:

$this->EE->functions->redirect($return); 

Add this right before that line:

$return $this->EE->api_sc_channel_entries->trigger_hook('entry_submission_redirect'$return); 
Profile
 
 
Posted: 27 October 2010 09:06 AM   [ Ignore ]   [ # 2 ]
Is a Really Great Dancer
RankRank
Total Posts:  68
Joined  2010-09-07

Pure genius.

Thanks Rob. Fixed.

[ Edited: 27 October 2010 07:27 PM by Rob Sanchez ]
Profile
 
 
Posted: 02 November 2010 09:22 PM   [ Ignore ]   [ # 3 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

FYI, this was added to today’s build.

Profile