It's worth mentioning whether and tags are required in the snippet or not. Just to save some tests cycles.

(Thank you for that module :-) )

Comments

gnassar’s picture

Thank you; that's a good point. The PHP snippet does not need the and markers; it should just be lines of PHP code. I will add that to the README.

jody lynn’s picture

I came to find the same info re: php tags. Adding it to the filter's description text would be even better than the README.

Also wanted to say that the module is very useful to me and I hope you decide to make a release.

My current use case is that I'm using Panels 2 to add a view to a node page which uses node context as its argument. I wanted to make sure that within that view it never includes the node of the page you're already viewing. Your module is perfect and I just filtered to exclude node ids like:

if (is_numeric(arg(1))) { return array(arg(1)); }

If there was already a way to quickly do that without your module I can't seem to see it.

gnassar’s picture

Status: Active » Closed (fixed)

Added to both the README and the help text.