You are here

function pardot_submission_load in Pardot Integration 6

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

Load a submission object from the database.

Parameters

integer $sid: Submission id.

1 call to pardot_submission_load()
pardot_footer in ./pardot.module
Implementation of hook_footer().

File

./pardot.module, line 369
ParDot integration module.

Code

function pardot_submission_load($sid) {
  $object = db_fetch_object(db_query('SELECT * FROM {pardot_submissions} WHERE sid = %d', $sid));
  $object->data = unserialize($object->data);
  return $object;
}