Programatically output a webform

Public

</> CopyGet raw version
php
  1. function drupal_render_webform($node_id) {
  2. $form = drupal_get_form('webform_client_form_'.$node_id,node_load($node_id),array(),TRUE,FALSE);
  3. return $form;
  4. }