function eloqua_webform_delete in Eloqua 6
Same name and namespace in other branches
- 7.2 eloqua_webform/eloqua_webform.inc \eloqua_webform_delete()
- 7 eloqua_webform/eloqua_webform.inc \eloqua_webform_delete()
Deletes a webform settings object from the database
Parameters
$nid integer:
Return value
boolean
File
- ./
eloqua.inc, line 266
Code
function eloqua_webform_delete($nid) {
if (!is_numeric($nid)) {
$type = gettype($nid);
watchdog(ELOQUA_WATCHDOG_CATEGORY, t('Invalid argument sent to !module_name (!type).', array(
'!module_name' => __FUNCTION__,
'!type' => $type,
)), array(), WATCHDOG_DEBUG);
return FALSE;
}
// Can't update the obvious invalid ppid of '0'...
if (empty($nid)) {
return FALSE;
}
foreach (module_implements('eloqua_form_delete') as $module_name) {
$method = $module_name . '_eloqua_form_delete';
$method($nid);
}
$result = _eloqua_webform_delete($nid);
return $result;
}