Frage

Essentially, I'd like to have a webform submission automatically create a node from the contents of its submission (Drupal 7). Is this possible?

War es hilfreich?

Lösung 2

Duh. I should have put this on Drupal Answers. My bad. Anyway, two answers over there:

  1. How to create a node with submissions of a webform?
  2. Webform submission as new node

Andere Tipps

Well there is this hook: hook_webform_submission_insert

Inside that hook you can create a new node using the $submission parameter that contains the submission just saved in the database.

To create a new node you can use node_save api

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top