You are here

function pardot_admin_scoring_edit in Pardot Integration 7

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

Form constructor for editing scoring entries.

Parameters

object $score: Scoring database object.

See also

pardot_admin_scoring_edit_validate()

pardot_admin_scoring_edit_submit()

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

File

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

Code

function pardot_admin_scoring_edit($form, $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;
}