delegator_node_view needs to set a build_mode
joshk - July 2, 2009 - 19:36
| Project: | Chaos tool suite |
| Version: | 6.x-1.0-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
Default node_view calls node_build_content(), which contains the following:
<?php
if (!isset($node->build_mode)) {
$node->build_mode = NODE_BUILD_NORMAL;
}
?>The lack of anything similar in delegator_node_view() causes a large number of notice errors if contrib modules (e.g. CCK) are installed that rely on the build_mode bit to determine their behavior.

#1
When delegator_node_view() builds content itself, it calls node_page_view() which should handle build mode itself as it's a page callback. I can't find any other places where I think this is relevant. If there are more specifics please let me know but with what I've got I don't see a problem here.