[development] $node namespace woes -- can we fix this in D6?

Earl Miles merlin at logrus.com
Wed May 30 01:58:06 UTC 2007


Moshe Weitzman wrote:
>> i could always just hack project* to always prefix everything it tries 
>> to stuff into or read from $node with some kind of custom variable 
>> name prefix, like calling this "$node->project_issue_pid" instead of 
>> just "$node->pid".
> 
> thata the drupal convention, and IMO it works quite well. Contrib 
> modules are second class citizens and should always prefix their 
> variables, form fields, node elements, etc. this system works very well, 
>  when you use it.

I disagree. book.module should be no better than a contrib module. It should 
use book_parent, book_etc.


More information about the development mailing list