function pardot_webform_load in Pardot Integration 7
Same name and namespace in other branches
- 6 pardot.module \pardot_webform_load()
- 7.2 pardot_webform/pardot_webform.module \pardot_webform_load()
Loads a Pardot form settings object.
Parameters
int $nid: Associated webform node id.
Return value
object|FALSE Settings object or false on failure.
3 calls to pardot_webform_load()
- pardot_form_alter in ./
pardot.module - Implements hook_form_alter().
- pardot_page_build in ./
pardot.module - Implements hook_page_build().
- pardot_webform_components_form in ./
pardot.admin.inc - Form constructor for the pardot webform management form.
File
- ./
pardot.module, line 369 - Pardot integration module.
Code
function pardot_webform_load($nid) {
$record = db_query("SELECT * FROM {pardot_webform} WHERE nid = :nid", array(
':nid' => $nid,
))
->fetchObject();
if ($record) {
$record->data = unserialize($record->data);
}
return $record;
}