By surlyrobot on
I'm writing a filter for an input format, and I want the filter to know the number of the node in which it is stored. I know I can check the arguments with something like:
if ((arg0=="node") && (isnumber(arg1)))
but when the filtered text appears in a teaser on the front page, the arguments don't reflect the node number.
Any suggestions?
Comments
This is not what filter is for
Filter should be applicable to comments, blocks and whatever text you feed to it. Filter is stateless. You may want to inspect hook_nodeapi view.
--
The news is Now Public | Drupal development: making the world better, one patch at a time. | please donate
--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.