Changeset 400
- Timestamp:
- 08/31/07 12:20:49 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
KeywordsAsTags/trunk/KeywordsAsTags/KeywordsAsTags.pl
r399 r400 7 7 use MT; 8 8 use base qw(MT::Plugin); 9 our $VERSION = '0.0 1';9 our $VERSION = '0.02'; 10 10 11 11 my $plugin = __PACKAGE__->new({ 12 name => 'KeywordsAsTags Plugin', 13 description => 'A plugin for converting keywords to MT3.3 tags when posting an entry with keywords.', 12 id => 'keywords_as_tags', 13 name => 'KeywordsAsTags', 14 description => q(<MT_TRANS phrase="KeywordsAsTags allows you to convert 'entry keywords' to MT3.3+ tags when posting an entry with keywords. It is convenient for you to post tagged entries from a blog client application which does not support 'tag' feature.">), 14 15 doc_link => 'http://code.as-is.net/wiki/KeywordsAsTags_Plugin', 15 16 author_name => 'Hirotaka Ogawa', 16 17 author_link => 'http://profile.typekey.com/ogawa/', 17 18 version => $VERSION, 19 l10n_class => 'KeywordsAsTags::L10N', 18 20 }); 19 21 MT->add_plugin($plugin); … … 21 23 22 24 sub keywords_as_tags { 23 my ($eh, $app, $e) = @_; 25 my $class = shift; 26 my ($e) = @_; 24 27 return unless $e->isa('MT::Entry') && $e->keywords; 25 28 my @tags = split_tags($e->keywords, 1);
