You are here

function webform_post_import in Default Content 7

Same name and namespace in other branches
  1. 7.2 plugins/webform.inc \webform_post_import()

Handles the importing of webform data after the node is created

File

plugins/webform.inc, line 41

Code

function webform_post_import($node) {
  if (module_exists('captcha')) {
    module_load_include('inc', 'captcha');
    if (isset($node->nid) && isset($node->captcha)) {
      $form_id = 'webform_client_form_' . $node->nid;
      $node->captcha = is_array($node->captcha) ? (object) $node->captcha : $node->captcha;
      captcha_set_form_id_setting($form_id, $node->captcha);
    }
  }
}