Doesn't hide CCK fields

catch - April 29, 2009 - 13:01
Project:Restricted content
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

I think this is because it's using hook_nodeapi('load') instead of hook_nodeapi('view') - taxonomy/term/323 on the development site for an example. Switching to $op == 'view' might help with body vs. teaser option as well.

#1

Dave Reid - April 30, 2009 - 15:43

Seems like a good change. I'm trying to remember the reason why I used hook_nodeapi('load')... I think it was so I could adjust the variables in the preprocess function. I'll check on this.

#2

catch - June 1, 2009 - 11:43
Status:active» needs review

Usering 'alter' actually seems OK here since we're replacing stuff added during view. Here's a patch for that. Could maybe do it by setting a low module weight but other modules might do the same thing.

AttachmentSize
restricted_content_alter-448404.patch 925 bytes

#3

sbart76 - October 11, 2009 - 16:02

This patch works for me as well. I am using node_images module and experienced hiding only text in the teaser and not the images. Thanks!

#4

GiorgosK - November 21, 2009 - 14:57
Status:needs review» reviewed & tested by the community

Patch works for me !!

 
 

Drupal is a registered trademark of Dries Buytaert.