You are here

function workflow_actions_get_trigger_assignments in Workflow 7

Get all trigger assignments for workflow.

1 call to workflow_actions_get_trigger_assignments()
workflow_actions_get_actions_by_tid in workflow_actions/workflow_actions.module
Get the actions associated with a given transition. Array of action ids in the same format as _trigger_get_hook_aids().

File

workflow_actions/workflow_actions.module, line 175
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_get_trigger_assignments() {
  $results = db_query('SELECT hook FROM {trigger_assignments} WHERE hook = "workflow"');
  return $results
    ->fetchAll();
}