function trigger_actions_delete

trigger_actions_delete($aid)

Implements hook_actions_delete().

Removes all trigger entries for the given action, when an action is deleted.

File

modules/trigger/trigger.module, line 627
Enables functions to be stored and executed at a later time.

Code

function trigger_actions_delete($aid) {
  db_delete('trigger_assignments')
    ->condition('aid', $aid)
    ->execute();
  drupal_static_reset('trigger_get_assigned_actions');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!trigger!trigger.module/function/trigger_actions_delete/7.x