]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Revert "Added a rescan hook."
authorintrigeri <intrigeri@boum.org>
Mon, 2 Aug 2010 11:14:33 +0000 (13:14 +0200)
committerintrigeri <intrigeri@boum.org>
Mon, 2 Aug 2010 11:14:33 +0000 (13:14 +0200)
IkiWiki/Plugin/skeleton.pm.example
IkiWiki/Render.pm
doc/plugins/write.mdwn

index 708d9283019a5e2dd2b806bd59315d88a13824e7..a57a2c8fe575626c7144256185f94e05bdfe8f2c 100644 (file)
@@ -18,7 +18,6 @@ sub import {
        hook(type => "filter", id => "skeleton", call => \&filter);
        hook(type => "linkify", id => "skeleton", call => \&linkify);
        hook(type => "scan", id => "skeleton", call => \&scan);
        hook(type => "filter", id => "skeleton", call => \&filter);
        hook(type => "linkify", id => "skeleton", call => \&linkify);
        hook(type => "scan", id => "skeleton", call => \&scan);
-       hook(type => "rescan", id => "skeleton", call => \&rescan);
        hook(type => "htmlize", id => "skeleton", call => \&htmlize);
        hook(type => "sanitize", id => "skeleton", call => \&sanitize);
        hook(type => "indexhtml", id => "skeleton", call => \&indexhtml);
        hook(type => "htmlize", id => "skeleton", call => \&htmlize);
        hook(type => "sanitize", id => "skeleton", call => \&sanitize);
        hook(type => "indexhtml", id => "skeleton", call => \&indexhtml);
@@ -105,12 +104,6 @@ sub scan (@) {
        debug("skeleton plugin running as scan");
 }
 
        debug("skeleton plugin running as scan");
 }
 
-sub rescan (@) {
-       my %params=@_;
-
-       debug("skeleton plugin running as rescan");
-}
-
 sub htmlize (@) {
        my %params=@_;
 
 sub htmlize (@) {
        my %params=@_;
 
index 5ce802317f68d3da036aa1894708f97f92152186..a653ab2da02e542828349c3d9f3ac200340608f4 100644 (file)
@@ -183,14 +183,6 @@ sub scan ($) {
 
                # Preprocess in scan-only mode.
                preprocess($page, $page, $content, 1);
 
                # Preprocess in scan-only mode.
                preprocess($page, $page, $content, 1);
-
-               run_hooks(rescan => sub {
-                       shift->(
-                               page => $page,
-                               content => $content,
-                       );
-               });
-
        }
        else {
                will_render($file, $file, 1);
        }
        else {
                will_render($file, $file, 1);
index 33532039420f7f3e9a7c9a4857de1b7fe6502dd4..10b4df835f9fde4eac70f6980727fbad8a7aa562 100644 (file)
@@ -194,17 +194,6 @@ them to `%links`. Present in IkiWiki 2.40 and later.
 The function is passed named parameters "page" and "content". Its return
 value is ignored.
 
 The function is passed named parameters "page" and "content". Its return
 value is ignored.
 
-### rescan
-
-       hook(type => "rescan", id => "foo", call => \&scan);
-
-This hook is called after the scan hook has been run, as well as the
-preprocess hook in scan mode. It is used to collect additional
-metadata that depends on a first scan to have been performed already.
-
-The function is passed named parameters "page" and "content". Its return
-value is ignored.
-
 ### filter
 
        hook(type => "filter", id => "foo", call => \&filter);
 ### filter
 
        hook(type => "filter", id => "foo", call => \&filter);