On 2005-06-21, Michael Peters <suppressed> wrote:
>
>> I suppose we also need an is_hook_available($hookname) method :)
>
> Yeah, I thought of that too. Then the CAP::MyDBH plugin could look for
> the config hook if it's available, else pick something else appropriately.
I've seen that need for that too. The use case is that one plugin may
want to interact with the hook location that another plugin provides...
but only if that other project is loaded. However, I would like to name
it 'hook_exists()' to be short, and similar to the 'exists' keyword.
Michael Peters, would you be interested in drafting a patch for that?
Mark
--
http://mark.stosberg.com/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.