You are here

function workflow_get_actions in Workflow 5.2

Same name and namespace in other branches
  1. 5 workflow.module \workflow_get_actions()

Get the actions associated with a given transition.

Parameters

int $tid:

Return value

array Actions as aid => description pairs.

1 call to workflow_get_actions()
workflow_transition_delete in ./workflow.module
Delete a transition (and any associated actions).

File

./workflow.module, line 1930

Code

function workflow_get_actions($tid) {
  $actions = array();
  if (!function_exists('actions_do')) {
    watchdog('workflow', t('Unable to get actions associated with a transition because the actions module is not enabled.'), WATCHDOG_WARNING);
    return $actions;
  }
  $op = 'workflow-' . $tid;
  $actions = _actions_get_hook_actions('workflow', $op);
  return $actions;
}