]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/signinedit.pm
po plugin: move translatable pages to setup file, refactor
[git.ikiwiki.info.git] / IkiWiki / Plugin / signinedit.pm
index 84ab3a4d0cbc7777b8df2b5b8c62cb0f0b94a9c9..ef7b9b428029f57687da3538a52b2ab75727c6ad 100644 (file)
@@ -6,10 +6,19 @@ use strict;
 use IkiWiki 2.00;
 
 sub import { #{{{
 use IkiWiki 2.00;
 
 sub import { #{{{
+       hook(type => "getsetup", id => "signinedit", call => \&getsetup);
        hook(type => "canedit", id => "signinedit", call => \&canedit,
             last => 1);
 } # }}}
 
        hook(type => "canedit", id => "signinedit", call => \&canedit,
             last => 1);
 } # }}}
 
+sub getsetup () { #{{{
+       return
+               plugin => {
+                       safe => 1,
+                       rebuild => 0,
+               },
+} #}}}
+
 sub canedit ($$$) { #{{{
        my $page=shift;
        my $cgi=shift;
 sub canedit ($$$) { #{{{
        my $page=shift;
        my $cgi=shift;