[development] No module-defined node types?

Gerhard Killesreiter gerhard at killesreiter.de
Thu Jan 4 20:58:49 UTC 2007


Gabor Hojtsy wrote:
> On Thu, 4 Jan 2007, Morbus Iff wrote:
>> You can't do this under the "old" way, because the user is stuck using 
>> only your Emotional Story node type. Sure, "new" way modules could be 
>> used to expand upon Emotional Story (making them also an Event and 
>> also a Case Tracker Case), but when the flexibility exists to add 
>> fields + logic to /any/ node type, as opposed to shipping one, you 
>> should use it. It's quite rude to think that I have to use just YOUR 
>> node type when all 900 of my other nodes are "Story", and now I have 
>> to abandon them and use "Emotional Story" instead.
> 
> This possibility is in Drupal since I work with it (at least since 
> 2003). There is no "new" or "old" way. It was possible since a long time 
> to write node extending modules, like scheduler for example. The sad 
> fact that event and some other modules were not written this way from 
> the start

I don't think nodeapi existed in Drupal 3.0.2 (IOW in 2001...). :p

> does not imply that they do anything new by morphing to be 
> node extensions.

The work to make event.module an extension was done by Aaron for the 4.5 
to 4.6 conversion, so it is indeed not too recent.

Cheers,
	Gerhard


More information about the development mailing list