From 3d64cb5ecae7c0d093e1343f87901769dc7d819e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 12 Jun 2009 08:39:40 +0000 Subject: - Patch #372743 by bjaspan, yched, KarenS, catch et al: node body and teasers as fields. Oh, my. --- modules/node/node.api.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/node/node.api.php') diff --git a/modules/node/node.api.php b/modules/node/node.api.php index d3058a57d..66630b7d0 100644 --- a/modules/node/node.api.php +++ b/modules/node/node.api.php @@ -204,7 +204,7 @@ function hook_node_grants_alter(&$grants, $account, $op) { // Get our list of banned roles. $restricted = variable_get('example_restricted_roles', array()); - + if ($op != 'view' && !empty($restricted)) { // Now check the roles for this account against the restrictions. foreach ($restricted as $role_id) { @@ -904,7 +904,6 @@ function hook_view($node, $teaser = FALSE) { menu_set_location($breadcrumb); } - $node = node_prepare($node, $teaser); $node->content['myfield'] = array( '#value' => theme('mymodule_myfield', $node->myfield), '#weight' => 1, -- cgit v1.2.3