You are here

function pardot_submission_load in Pardot Integration 7

Same name and namespace in other branches
  1. 6 pardot.module \pardot_submission_load()

Loads a submission object from the database.

Parameters

int $sid: Submission ID.

1 call to pardot_submission_load()
pardot_page_build in ./pardot.module
Implements hook_page_build().

File

./pardot.module, line 406
Pardot integration module.

Code

function pardot_submission_load($sid) {
  $object = db_query("SELECT * FROM {pardot_submissions} WHERE sid = :sid", array(
    ':sid' => $sid,
  ))
    ->fetchObject();
  $object->data = unserialize($object->data);
  return $object;
}