function workflow_actions_workflow_operations in Workflow 7
Same name and namespace in other branches
- 7.2 workflow_actions/workflow_actions.module \workflow_actions_workflow_operations()
Implements hook_workflow_operations(). Called in workflow.admin.inc to add actions for states.
File
- workflow_actions/
workflow_actions.module, line 131 - 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_workflow_operations($level, $workflow = NULL, $state = NULL) {
if ($workflow) {
return array(
'workflow_overview_actions' => array(
'title' => t('Actions'),
'href' => 'admin/structure/trigger/workflow/' . $workflow->wid,
),
);
}
}