You are here

function workflow_actions_get_actions_by_aid in Workflow 7

Get a specific action.

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

File

workflow_actions/workflow_actions.module, line 198
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_actions_by_aid($aid) {
  $results = db_query('SELECT * FROM {actions} WHERE aid = ":aid"', array(
    ':aid' => $aid,
  ));
  return $results
    ->fetchAll();
}