Created
January 27, 2015 11:43
-
-
Save krystianbuczak/2ab37ac18872584ec056 to your computer and use it in GitHub Desktop.
Embed drupal webform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get contact webform | |
$node = node_load(xx); | |
$submission = (object) array(); | |
$enabled = TRUE; | |
$preview = FALSE; | |
$contact_form = drupal_get_form('webform_client_form_xx', $node, $submission, $enabled, $preview); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment