Posted by kiamlaluno on August 19, 2009 at 2:13am
Jump to:
| Project: | Custom filter |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | 6.x-1.0-beta9, 6.x-2.0-beta5 |
Issue Summary
Filter should not access to any properties of the node they are acting on. The current code takes the assumption that a call to hook_filter() is always preceded from a call to hook_nodeapi(), which is not guaranteed.
If a module needs to change a node content basing on some data obtained from the node, then it should only implement hook_nodeapi('view').
Comments
#1
The code has been changed in both the Drupal 6 branches. For branch 6.x-2, this means the module doesn't use token.module anymore.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.