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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | restricted_content_alter-448404.patch | 925 bytes | catch |
Comments
Comment #1
dave reidSeems 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.
Comment #2
catchUsering '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.
Comment #3
sbart76 commentedThis 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!
Comment #4
giorgoskPatch works for me !!
Comment #5
dave reidFixed in CVS. Thanks!