John Peacock said the following on 27/11/2005 03:01:
> Robin Bowes wrote:
> 
>>Is it possible to call the subs in the parent plugin? 
> 
> 
> That's in the example in the README.plugins:
> 
>   $self->SUPER::hook_reset_transaction( $transaction, @args );

Ah, OK. Missed that.

>>Would I need to do
>>that? For example, if I override hook_reset_transaction to write a
>>parseable accept log I would still want logging to go to the "detailed" log.
> 
> 
> The hook_logging() actually does the detailed log; in the current plugin,
> hook_reset_transaction() handles the accepted messages only (the hook_reject 
> is
> just a stub).  For your purposes, you can override hook_reset_transaction() 
> and
> hook_reject() and let the base plugin handle hook_logging().

Right, that sounds easy enough!

I'll re-work my plugin and post it here when it's finished.

Cheers,

R.
-- 
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

Reply via email to