You are here

function webform_civicrm_disable in Webform CiviCRM Integration 7.2

Same name and namespace in other branches
  1. 6.2 webform_civicrm_d6_functions.inc \webform_civicrm_disable()

Delete civicrm settings for a webform.

1 call to webform_civicrm_disable()
webform_civicrm_configure_form_submit in ./webform_civicrm_admin.inc
Submission handler, saves CiviCRM options for a Webform node

File

./webform_civicrm_d7_functions.inc, line 33
Keep all functions specific to a version of Drupal here, to allow the rest of the code to be version-independent.

Code

function webform_civicrm_disable($nid) {
  db_delete('webform_civicrm_forms')
    ->condition('nid', $nid)
    ->execute();
}