You are here

function trigger_actions_delete in Drupal 6

Same name and namespace in other branches
  1. 7 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);
}