function pardot_webform_load in Pardot Integration 6
Same name and namespace in other branches
- 7.2 pardot_webform/pardot_webform.module \pardot_webform_load()
- 7 pardot.module \pardot_webform_load()
Load a pardot form settings object.
Parameters
integer $nid: Associated webform node id.
Return value
Settings object or false on failure.
3 calls to pardot_webform_load()
- pardot_footer in ./
pardot.module - Implementation of hook_footer().
- pardot_form_alter in ./
pardot.module - Implementation of hook_form_alter().
- pardot_webform_components_form in ./
pardot.admin.inc
File
- ./
pardot.module, line 330 - ParDot integration module.
Code
function pardot_webform_load($nid) {
$record = db_fetch_object(db_query('SELECT * FROM {pardot_webform} WHERE nid = %d', $nid));
if ($record) {
$record->data = unserialize($record->data);
}
return $record;
}