Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment