[development] function node_page_default
agentrickard at gmail.com
Fri Jul 13 12:11:39 UTC 2007
Yes. The ability to extend the data associated with a node, such as with
hook_load() is a crucial function. Without it, you get incomplete node
- Ken Rickard
On 7/13/07, Keizo Gates <kzo at kzo.net> wrote:
> I've been reading through the node.module code for a project and came
> accross the node_page_default function. As far as I can tell this is
> used for the traditional list of nodes for a drupal homepage.
> The documentation page is here: http://api.drupal.org/api/HEAD/
> My question is, couldn't this function be made to use just one
> database query? as it stands it uses node_load() for every node that
> needs to be displayed on the page so if you want to display 30
> teasers, that's 30+ database hits. Am I missing something here?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development