root/branches/athena/plugins/WXRImporter/WXRImporter.pl @ 1092

Revision 1092, 1.0 kB (checked in by hachi, 2 years ago)

Merging release-15 to athena branch. svn merge -r59987:60375 http://svn.sixapart.com/repos/eng/movabletype/branches/release-15 .

  • Property svn:keywords set to Author Date Id Revision
Line 
1# WXRImporter plugin for Movable Type
2# Author: Six Apart (http://www.sixapart.com)
3# Released under the Artistic License
4#
5# $Id$
6
7package MT::Plugin::WXRImporter;
8
9use strict;
10use base qw( MT::Plugin );
11
12my $plugin = new MT::Plugin::WXRImporter({
13    name => "WXR Importer",
14    version => '1.0',
15    description => '<MT_TRANS phrase="Import WordPress exported RSS into MT.">',
16    author_name => "Six Apart, Ltd.",
17    author_link => "http://www.sixapart.com/",
18    l10n_class => 'WXRImporter::L10N',
19});
20MT->add_plugin($plugin);
21
22sub init_registry {
23    my $plugin = shift;
24    $plugin->registry({
25        'import_formats' => {
26            'import_wxr' => {
27                label => 'WordPress eXtended RSS (WXR)',
28                type => 'WXRImporter::Import',
29                handler => 'WXRImporter::Import::import_contents',
30                options => [ 'wp_path', 'mt_site_path', 'mt_extra_path' ],
31                options_template => 'options.tmpl',
32                options_param => 'WXRImporter::Import::get_param',
33            },
34        },
35    });
36}
37
381;
Note: See TracBrowser for help on using the browser.