summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/trigger/trigger.module9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module
index 17ecfb129..283f9a148 100644
--- a/modules/trigger/trigger.module
+++ b/modules/trigger/trigger.module
@@ -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);
+}