# Copyright 2006, AUTHOR, All right reserved.

package SamplePlugin::NoAccessKey;

use strict;
use MT;
use base qw(MT::Plugin);
use vars qw($VERSION);

sub BEGIN {
    $VERSION = '1.0';
    my $plugin = new SamplePlugin::NoAccessKey(
        name => 'No Access Key',
        description => '<MT_TRANS phrase="No Access Key">',
        version => $VERSION,
        author_name => 'AUTHOR',
        author_link => 'AUTHOR_URL',
    );
    MT->add_plugin($plugin);

    MT::App->add_callback('MT::App::CMS::AppTemplateOutput', 10, $plugin,
                          sub {$plugin->transformer(@_)});
}

sub transformer {
    my $plugin = shift;
    my ($eh, $app, $output) = @_;
    $$output =~ s/accesskey="."//g;
    return 1;
}

1;
