Filters should not access any data referred to the node they are filtering
kiamlaluno - August 19, 2009 - 02:13
| Project: | Custom filter |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
| Issue tags: | 6.x-1.0-beta9, 6.x-2.0-beta5 |
Jump to:
Description
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').

#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.