[support] Passing current nid to block webform

Fred Jones fredthejonester at gmail.com
Thu Dec 9 11:05:58 UTC 2010


> I have a webform displayed on a node page as a block.
>
> This is a property listing site, so I have the property page, and in it
> there's a block with a contact us for more info form.
>
> I'd like to be able to pass the current node title to the webform as a
> hidden field. I'm not sure how to do this.

$node = node_load(arg(1));

HTH


More information about the support mailing list