Download & Extend

Filters should not access any data referred to the node they are filtering

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

Status:active» fixed

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

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.