function _eloqua_webform_update in Eloqua 6
Same name and namespace in other branches
- 7.2 eloqua_webform/eloqua_webform.inc \_eloqua_webform_update()
- 7 eloqua_webform/eloqua_webform.inc \_eloqua_webform_update()
Updates the webform object from the database
Parameters
$webform object:
Return value
boolean
2 calls to _eloqua_webform_update()
- eloqua_webform_create in ./
eloqua.inc - Creates a webform settings from the database @hook eloqua_form_create
- eloqua_webform_update in ./
eloqua.inc - Updates a webform settings from the database @hook eloqua_form_update
File
- ./
eloqua.inc, line 342
Code
function _eloqua_webform_update($webform) {
$sql = 'UPDATE ' . ELOQUA_SCHEMA_WEBFORM . ' SET ' . ELOQUA_WEBFORM_FIELD_FORM_NAME . " = '%s'," . ELOQUA_WEBFORM_FIELD_ACTIVE . ' = %d, ' . ELOQUA_WEBFORM_FIELD_DATA . " = '%s'" . ' WHERE ' . ELOQUA_WEBFORM_FIELD_NODE_ID . ' = %d';
$params = array(
$webform->{ELOQUA_WEBFORM_FIELD_FORM_NAME},
$webform->{ELOQUA_WEBFORM_FIELD_ACTIVE},
serialize($webform->{ELOQUA_WEBFORM_FIELD_DATA}),
$webform->{ELOQUA_WEBFORM_FIELD_NODE_ID},
);
$result = _eloqua_modify_query($sql, $params);
return $result;
}