Created
May 13, 2014 23:33
-
-
Save wesrice/218e726a7e0614b0811b to your computer and use it in GitHub Desktop.
Redirect on Save
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
craft()->on('entries.saveEntry', function(Event $event) { | |
$entry = $event->params['entry']; | |
if( $event->params['entry']->sectionId == 4 ) { | |
craft()->request->redirect( '/admin/nameofplugin' ); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment