Send to a Friend

shivian's avatar

How do I use PHP to get the node ID for a block?

Asked by shivian (10points) October 17th, 2007

I am using drupal and trying to write a block using PHP. The block would figure out the node ID for a page (ie: for http://site.com/node/14 it would return “14”) and then put that into another link I’m trying to make using that same number (ie: http://site.com/forward/14). Anyone know how I’d go about doing this?

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.