[development] function node_page_default

Ken Rickard 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
CCK.

See http://api.drupal.org/api/HEAD/function/hook_load

hook_load() is a crucial function.  Without it, you get incomplete node
data.

- Ken Rickard
agentrickard

On 7/13/07, Keizo Gates <kzo at kzo.net> wrote:
>
> Hello,
>
> 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/
> function/node_page_default
>
> 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?
>
> Keizo
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070713/f1287891/attachment.htm 


More information about the development mailing list