You are here

function workflow_actions_remove in Workflow 5.2

Same name and namespace in other branches
  1. 5 workflow.module \workflow_actions_remove()
  2. 7 workflow_actions/workflow_actions.module \workflow_actions_remove()
1 call to workflow_actions_remove()
workflow_transition_delete in ./workflow.module
Delete a transition (and any associated actions).

File

./workflow.module, line 1955

Code

function workflow_actions_remove($tid, $aid, $description) {
  db_query("DELETE FROM {actions_assignments} WHERE hook = '%s' AND op = '%s' AND aid = '%s'", 'workflow', 'workflow' . $tid, $aid);
  watchdog('workflow', t('Action %action has been unassigned.', array(
    '%action' => $description,
  )));
}