You are here

function pardot_admin_scoring_delete_submit in Pardot Integration 7

Same name and namespace in other branches
  1. 6 pardot.admin-scoring.inc \pardot_admin_scoring_delete_submit()
  2. 7.2 pardot.admin-scoring.inc \pardot_admin_scoring_delete_submit()

Form submission handler for pardot_admin_scoring_delete().

File

./pardot.admin-scoring.inc, line 203
Admin scoring form.

Code

function pardot_admin_scoring_delete_submit($form, &$form_state) {
  $score = $form_state['build_info']['args'][0];
  db_delete('pardot_scoring')
    ->condition('scoring_id', $score->scoring_id)
    ->execute();
  $form_state['redirect'] = 'admin/config/services/pardot/scoring';
}