[drupal-devel] [feature] Flat out $node in phptemplate_node vars

Bèr Kessels drupal-devel at drupal.org
Wed Jun 15 15:18:00 UTC 2005


Issue status update for http://drupal.org/node/24862

 Project:      Drupal
 Version:      cvs
 Component:    theme system
 Category:     feature requests
 Priority:     normal
 Assigned to:  chx
 Reported by:  chx
 Updated by:   Bèr Kessels
 Status:       patch

I Add my +1 to the 'heap' too. But a slight additional feature:
Maybe we should then omit teh $node completely. It makes not much sense
IMO to use the overheard of parsing along a rather often-used, and big
varible, when its availabe in another form already
Maybe you should do some checking for already existing variables. One
nevver really knows w




Bèr Kessels



Previous comments:
------------------------------------------------------------------------

June 12, 2005 - 19:16 : chx

Attachment: http://drupal.org/files/issues/nodevarsflat.patch (907 bytes)

I'd like to write $whatever in node.tpl.php instead of $node->whatever .
Hence the patch.




------------------------------------------------------------------------

June 12, 2005 - 19:23 : adrian

i am gonna +1 this, as it simplifies the available variables.







More information about the drupal-devel mailing list