$MT_DIR/
|__ plugins/
| |__ HelloWorld/
| |__ hello_world.pl
package MT::Plugin::HelloWorld;
use strict;
use base qw(MT::Plugin);
my $plugin = MT::Plugin::HelloWorld->new({
id => 'helloworld',
key => 'HelloWorld',
name => 'HelloWorld',
registry => {
tags => {
function => {
'Hello' => \&hdlr_hello,
},
},
}
});
MT->add_plugin($plugin);
sub hdlr_hello{
return 'Hello World';
}
1;