function webform_update_6317 in Webform 6.3
Remove orphaned e-mail settings of nodes that have been deleted.
File
- ./
webform.install, line 1303 - Webform module install/schema hooks.
Code
function webform_update_6317() {
$ret = array();
$ret[] = update_sql("DELETE FROM {webform_emails} WHERE nid NOT IN (SELECT nid FROM {node})");
return $ret;
}