function hook_webform_component_delete in Webform 7.4
Same name and namespace in other branches
- 6.3 webform.api.php \hook_webform_component_delete()
- 7.3 webform.api.php \hook_webform_component_delete()
Respond to a Webform component being deleted.
Related topics
1 invocation of hook_webform_component_delete()
- webform_component_delete in includes/
webform.components.inc - Delete a Webform component.
File
- ./
webform.api.php, line 342 - Sample hooks demonstrating usage in Webform.
Code
function hook_webform_component_delete($component) {
// Delete a record in a 3rd-party module table when a component is deleted.
db_delete('mymodule_table')
->condition('nid', $component['nid'])
->condition('cid', $component['cid'])
->execute();
}