Same name and namespace in other branches
  1. 7.x modules/trigger/trigger.module \trigger_actions_delete()

Implementation of hook_actions_delete().

Remove all trigger entries for the given action, when deleted.

File

modules/trigger/trigger.module, line 433
Enables functions to be stored and executed at a later time when triggered by other modules or by one of Drupal's core API hooks.

Code

function trigger_actions_delete($aid) {
  db_query("DELETE FROM {trigger_assignments} WHERE aid = '%s'", $aid);
}