Created
September 8, 2009 04:48
-
-
Save usualoma/182727 to your computer and use it in GitHub Desktop.
This file contains 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
package MT::Plugin::ReturnURI; | |
use strict; | |
use MT; | |
use MT::Plugin; | |
our $VERSION = '1.00'; | |
use base qw( MT::Plugin ); | |
my $plugin = MT::Plugin::ReturnURI->new; | |
MT->add_plugin( $plugin ); | |
sub init_registry { | |
my $plugin = shift; | |
$plugin->registry( { | |
callbacks => { | |
'MT::Entry::post_save' => sub { | |
my $app = MT->instance; | |
MT->log($app->return_uri); | |
} | |
}, | |
} ); | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Metro PC's