Changeset 225


Ignore:
Timestamp:
Apr 20, 2006, 3:09:32 PM (14 years ago)
Author:
nick
Message:

More on documenting Plugin points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Plugin.pm

    r224 r225  
    3737=item B<post_moderate>
    3838
     39  Called after moderation has been performed.
     40  Allows additional actions to occur after node moderation.
     41
     42  my %args = @_;
     43  my ($node,$node_id,$version) =
     44     @args{ qw( node node_id version ) };
     45  &update_pending_list($node,$version);
     46
    3947=item B<pre_rename>
    4048
     49  Called before a rename is performed.
     50  Allows changes to the parameters used by rename.
     51
     52  my %args = @_;
     53  my ($old_name_ref,$new_name_ref,$create_new_versions_ref) =
     54     @args{ qw( old_name new_name create_new_versions ) };
     55  $$old_name_ref =~ s/\s/_/g;
     56  $$new_name_ref =~ s/\s/_/g;
     57
     58  TODO: Allow declining of the rename.
     59
    4160=item B<post_rename>
     61
     62  Called after a rename has been performed.
     63  Allows additional actions to occur after node renames.
     64
     65  my %args = @_;
     66  my ($old_name,$new_name,$node_id) =
     67     @args{ qw( old_name new_name node_id ) };
     68  &recalculate_category_listings();
    4269
    4370=item B<pre_retrieve>
     
    75102
    76103=item B<post_delete>
     104
     105  Called after a delete has been performed.
     106  Allows additional actions to occur after node deletions.
     107
     108  my %args = @_;
     109  my ($node,$node_id,$version) =
     110     @args{ qw( node node_id version ) };
     111  &log_node_delete($node,gmtime);
    77112
    78113=back
Note: See TracChangeset for help on using the changeset viewer.