Webform form insert

Categories:

Webform form insert

Php snippet to insert a webform in any node.

<?php

// load the webform node
$ourform = node_load(2);

// insert 4 parameters
print drupal_get_form('webform_client_form_2',$ourform,array(),'','');

?>

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
6 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.