#203941 reported and tested by Takafumi, patch by myself: trigger assocations should be removed when deleting an advanced action

6.x
Gábor Hojtsy 2007-12-28 15:21:30 +00:00
parent a88c178b91
commit 2f21341f4e
1 changed files with 9 additions and 0 deletions

View File

@ -418,3 +418,12 @@ function trigger_options($type = 'all') {
return $options[$type];
}
}
/**
* Implementation of hook_actions_delete().
*
* Remove all trigger entries for the given action, when deleted.
*/
function trigger_actions_delete($aid) {
db_query("DELETE FROM {trigger_assignments} WHERE aid = '%s'", $aid);
}