This is great, I understand the pros of this approach, however, when first learning about hooks and $op, it was nice to be able to dsm($op) and find out what all was available to me. How would a newer dev find this information now? In the registry? On Tue, May 13, 2008 at 11:34 AM, Adrian Rossouw <adrian@bryght.com> wrote:
On 13 May 2008, at 6:40 AM, Larry Garfield wrote:
I have an irrational hatred of switch statements, so eliminating hooks that are nothing but nested switch statements half the time gets a big +1 from me. :-)
the very first iteration of fapi was to have each form be one function with a switch statement.
can you imagine how nasty that would have been ?
i'm _firmly_ in the multiple function camp. I even write little stubs for my own nodeapi functions, that call modulename_nodeapi_$op functions etc.