You are here

function pardot_admin_scoring_edit_submit in Pardot Integration 7

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

Form submission handler for pardot_admin_scoring_edit().

See also

pardot_admin_scoring_edit_validate()

File

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

Code

function pardot_admin_scoring_edit_submit($form, &$form_state) {
  $score = (object) $form_state['values'];
  drupal_write_record('pardot_scoring', $score, array(
    'scoring_id',
  ));
  $form_state['redirect'] = 'admin/config/services/pardot/scoring';
}