You are here

function pardot_webform_components_form_delete_submit in Pardot Integration 7

Same name and namespace in other branches
  1. 7.2 pardot_webform/pardot_webform.admin.inc \pardot_webform_components_form_delete_submit()

Form submission handler for pardot_webform_components_form().

Deletes the pardot post url from the database for the node.

See also

pardot_webform_components_form_validate()

1 string reference to 'pardot_webform_components_form_delete_submit'
pardot_webform_components_form in ./pardot.admin.inc
Form constructor for the pardot webform management form.

File

./pardot.admin.inc, line 322
Admin forms.

Code

function pardot_webform_components_form_delete_submit($form, &$form_state) {
  $node = $form['#node'];
  db_delete('pardot_webform')
    ->condition('nid', $node->nid)
    ->execute();
  drupal_set_message(t('Pardot settings for this webform deleted.'), 'status');
}