On Oct 6, 5:42 pm, The Editor <[email protected]> wrote:
> I'll work on it. We can surely setup a hook to allow what you
> requested, I'm just not sure about rewriting the whole save page
> function.
i had another idea for you to think about.
how about some hooks for certain *events*? think about OnPageLoad,
OnPageSave etc... you could define an array $Events which contains the
various arrays of functions:
$Events['OnPageSave'] = array('func1', 'func2');
$Events['OnPageLoad'] = array('func3', 'func4');
then you would just pass to BOLTprocess the relevant array at the
appropriate point in the code, no need to rewrite the whole save page
function.
this also would allow an easy extension in the future i think, i.e.
adding new events.
a plugin that wants to run some code before the page is saved would
just do: $Events['OnPageSave'][] = 'myfunc';
nice?
blues
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---