PmWiki uses an UpdatePage function, which call the functions listed in
an $EditFunctions array.
One can also give UpdatePage() a custom function list.
One problem with  a simple array is how to insert a custom edit
function at a specific point.
This could be overcome by using an $EditFunctions array like

$EditFunctions = array (
    'Stamp' => 100,
    'Diff' => 200,
    'ReplaceOnSave' => 300,
    'SaveData' => 400,
    'SavePage' => 500,
  );

then in the page update function do a

    asort($EditFunctions, SORT_NUMERIC);

before calling each edit function in turn.

This allows inserting custom functions anywhere by giving them the
appropriate numeric value.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to