sub import {
hook(type => "preprocess", id => "color", call => \&preprocess);
hook(type => "format", id => "color", call => \&format);
+ hook(type => "getsetup", id => "color", call => \&getsetup);
+}
+
+sub getsetup () {
+ return
+ plugin => {
+ safe => 1,
+ rebuild => undef,
+ },
}
sub preserve_style ($$$) {
sub import {
hook(type => "preprocess", id => "format", call => \&preprocess);
+ hook(type => "getsetup", id => "format", call => \&getsetup);
+}
+
+sub getsetup () {
+ return
+ plugin => {
+ safe => 1,
+ rebuild => undef,
+ },
}
sub preprocess (@) {
to otherwise locked-down sites.
* auto-blog.setup: Lock all pages, so only admin can post to the blog
by default, and enable opendiscussion so others can comment.
+ * Fix color and format plugins to appear in the websetup interface.
-- Joey Hess <joeyh@debian.org> Tue, 26 Jan 2010 22:25:33 -0500