You are here

function pardot_admin_scoring_edit in Pardot Integration 6

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

Form callback for editing scoring entries.

1 string reference to 'pardot_admin_scoring_edit'
pardot_menu in ./pardot.module
Implementation of hook_menu().

File

./pardot.admin-scoring.inc, line 93

Code

function pardot_admin_scoring_edit($form_state, $score) {
  $form = array();
  $form['scoring_id'] = array(
    '#type' => 'value',
    '#value' => $score->scoring_id,
  );
  $form['path'] = array(
    '#title' => t('Path'),
    '#type' => 'textfield',
    '#size' => 30,
    '#default_value' => $score->path,
  );
  $form['score'] = array(
    '#title' => t('Score'),
    '#type' => 'textfield',
    '#size' => 30,
    '#default_value' => $score->score,
  );
  $form['save'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}