Commit 2f21341f authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#203941 reported and tested by Takafumi, patch by myself: trigger assocations...

#203941 reported and tested by Takafumi, patch by myself: trigger assocations should be removed when deleting an advanced action
parent a88c178b
...@@ -418,3 +418,12 @@ function trigger_options($type = 'all') { ...@@ -418,3 +418,12 @@ function trigger_options($type = 'all') {
return $options[$type]; 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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment