You are here

function workflow_actions_delete_trigger_assignments_by_aid_op in Workflow 7

Delete assignments, by action and operation.

1 call to workflow_actions_delete_trigger_assignments_by_aid_op()
workflow_actions_remove in workflow_actions/workflow_actions.module
Remove an action assignment programmatically.

File

workflow_actions/workflow_actions.module, line 191
Provide actions and triggers for workflows. Why it's own module? Some sites prefer rules, some prefer actions, all prefer a lower code footprint and better performance. Additional credit to gcassie ( http://drupal.org/user/80260 ) for the initial…

Code

function workflow_actions_delete_trigger_assignments_by_aid_op($aid, $op) {
  return db_delete('trigger_assignments')
    ->condition('hook', 'workflow')
    ->condition('hook', $op)
    ->condition('aid', $aid)
    ->execute();
}