diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-12 08:39:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-12 08:39:40 +0000 |
commit | 3d64cb5ecae7c0d093e1343f87901769dc7d819e (patch) | |
tree | 765b3104ae2bbdf96ac677f8deab9b5457ffa4bf /modules/node/node.api.php | |
parent | bfdea95337376b00e60049b640c076e8ab32293f (diff) | |
download | brdo-3d64cb5ecae7c0d093e1343f87901769dc7d819e.tar.gz brdo-3d64cb5ecae7c0d093e1343f87901769dc7d819e.tar.bz2 |
- Patch #372743 by bjaspan, yched, KarenS, catch et al: node body and teasers as fields. Oh, my.
Diffstat (limited to 'modules/node/node.api.php')
-rw-r--r-- | modules/node/node.api.php | 3 |
1 files changed, 1 insertions, 2 deletions
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, |