[development] the time of $op is over?

Larry Garfield larry at garfieldtech.com
Tue May 13 15:56:58 UTC 2008


api.drupal.org and the handbooks.  If it's not sufficiently clear from those, that is a documentation bug.  Please file a patch. :-)

--Larry Garfield

On Tue, 13 May 2008 11:38:49 -0400, "Jerad Bitner" <sirkitree at gmail.com> wrote:
> 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 at 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.
>>
>>
> 
> 



More information about the development mailing list