Domanda

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

È stato utile?

Soluzione 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

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top