function workflow_workflow_ng_configuration in Workflow 5.2
Same name and namespace in other branches
- 5 contrib/workflow_workflow_ng/workflow_workflow_ng.module \workflow_workflow_ng_configuration()
File
- contrib/
workflow_workflow_ng/ workflow_workflow_ng.module, line 124
Code
function workflow_workflow_ng_configuration() {
$conf['email_author_when_state_changes'] = array(
'#type' => 'configuration',
'#altered' => false,
'#event' => 'workflow_transition_post',
'#label' => 'Email Author when workflow state changes',
'#active' => 0,
'#module' => 'workflow-ng',
0 => array(
'#type' => 'condition',
'#name' => 'workflow_ng_condition_token_compare',
'#negate' => 1,
'#settings' => array(
'text1' => '[state:workflow-current-state-name]',
'text1_args' => array(
0 => 'state',
),
'text2' => '[state:workflow-old-state-name]',
'text2_args' => array(
0 => 'state',
),
'regex' => 0,
),
'#label' => 'Current State Name == Old state Name',
),
1 => array(
'#type' => 'action',
'#name' => 'workflow_ng_action_mail_to_user',
'#argument map' => array(
'author' => 'user',
),
'#settings' => array(
'from' => '[node:site-mail]',
'from_args' => array(
0 => 'node',
),
'subject' => 'State of [node:title] Changed',
'subject_args' => array(
0 => 'node',
),
'message' => 'It is now [state:workflow-current-state-name]',
'message_args' => array(
0 => 'state',
),
),
'#label' => 'Send Notification to Author',
),
2 => array(
'#type' => 'action',
'#name' => 'workflow_ng_action_drupal_message',
'#settings' => array(
'message' => 'Mail has been sent to the author, notifying them of their ownership of [node:title]',
'message_args' => array(
0 => 'node',
1 => 'state',
),
'error' => 0,
),
),
'#name' => 'cfg_2',
);
return $conf;
}