function eloqua_webform_update in Eloqua 7
Same name and namespace in other branches
- 6 eloqua.inc \eloqua_webform_update()
- 7.2 eloqua_webform/eloqua_webform.inc \eloqua_webform_update()
Updates a webform settings from the database.
@hook eloqua_form_update
Parameters
object $webform: The webform.
Return value
bool The result of the update.
File
- eloqua_webform/
eloqua_webform.inc, line 112 - Eloqua Helper functions and constants
Code
function eloqua_webform_update($webform) {
if (!is_object($webform)) {
$type = gettype($webform);
watchdog('eloqua', 'Invalid argument sent to !module_name (!type).', array(
'!module_name' => __FUNCTION__,
'!type' => $type,
), WATCHDOG_DEBUG);
return FALSE;
}
// Can't update the obvious invalid ppid of '0'...
if (empty($webform->nid)) {
return FALSE;
}
foreach (module_implements('eloqua_form_update') as $module_name) {
$method = $module_name . '_eloqua_form_update';
$method($webform);
}
// Save the result to the database and return the result.
return _eloqua_webform_update($webform);
}