As described in http://drupal.org/node/76583#comment-141914

Maybe there is a better way to retrieve the nid.

CommentFileSizeAuthor
#2 img_assist_3.patch1.19 KBjax
imagereference.patch1.33 KBjax

Comments

gollyg’s picture

This is the code used in the node module to determine if the url should be treated as a node. I think it is important to make sure that the given page is actually a node, not a page generated by another module such as taxonomy. Perhaps it should be incorporated?

if(arg(0) == 'node' && is_numeric(arg(1))

jax’s picture

StatusFileSize
new1.19 KB

Patch updated.

jax’s picture

Assigned: jax » Unassigned
darren oh’s picture

Status: Needs review » Fixed

Fixed in CVS commit 46568.

Anonymous’s picture

Status: Fixed » Closed (fixed)