function workflow_actions_action_info in Workflow 6
Same name and namespace in other branches
- 6.2 workflow_actions/workflow_actions.module \workflow_actions_action_info()
Implementation of hook_action_info().
File
- workflow_actions/
workflow_actions.module, line 49 - 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 creadit to gcassie ( http://drupal.org/user/80260 ) for the…
Code
function workflow_actions_action_info() {
return array(
'workflow_select_next_state_action' => array(
'type' => 'node',
'description' => t('Change workflow state of post to next state'),
'configurable' => FALSE,
'hooks' => array(
'nodeapi' => array(
'presave',
),
'comment' => array(
'insert',
'update',
),
'workflow' => array(
'any',
),
),
),
'workflow_select_given_state_action' => array(
'type' => 'node',
'description' => t('Change workflow state of post to new state'),
'configurable' => TRUE,
'hooks' => array(
'nodeapi' => array(
'presave',
),
'comment' => array(
'insert',
'update',
),
'workflow' => array(
'any',
),
),
),
);
}