Posted by catch on April 29, 2009 at 1:01pm
| Project: | Restricted content |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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.
Comments
#1
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
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.
#3
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
Patch works for me !!
#5
Fixed in CVS. Thanks!
#6
Automatically closed -- issue fixed for 2 weeks with no activity.