Skip to content

Instantly share code, notes, and snippets.

@usualoma
Created September 8, 2009 04:48
Show Gist options
  • Save usualoma/182727 to your computer and use it in GitHub Desktop.
Save usualoma/182727 to your computer and use it in GitHub Desktop.
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;
@Steven1987
Copy link

Metro PC's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment