You are here

function pardot_admin_scoring_delete in Pardot Integration 7

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

Form constructor for deleting scoring entries.

Parameters

object $score: Scoring database object.

See also

pardot_admin_scoring_delete_submit()

1 string reference to 'pardot_admin_scoring_delete'
pardot_menu in ./pardot.module
Implements hook_menu().

File

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

Code

function pardot_admin_scoring_delete($form, &$form_state, $score) {
  $form = array();

  //$form['#scoring_id'] = $score->scoring_id;
  $description = t('Are you sure you want to delete this scoring (%score)? This path will no logger trigger additional scoring in Pardot.', array(
    '%score' => $score->scoring_id,
  ));
  return confirm_form($form, t('Are you sure you want to delete this score (%score)?', array(
    '%score' => $score->scoring_id,
  )), 'admin/config/services/pardot/scoring', $description, 'Delete');
}