#203941 reported and tested by Takafumi, patch by myself: trigger assocations should be removed when deleting an advanced action
parent
a88c178b91
commit
2f21341f4e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue