Last updated December 23, 2007. Created by Amitaibu on December 23, 2007.
Log in to edit this page.
---Needs Fago's approval---
Import this in order to set up the Workflow-ng for the Node lock functionality.
array (
'cfg_42' =>
array (
'#type' => 'configuration',
'#altered' => false,
'#event' => 'machine_cce_cclink0_change',
'#label' => 'Node is locked',
'#active' => 1,
'#module' => 'workflow-ng',
0 =>
array (
'#type' => 'condition',
'#name' => 'workflow_ng_condition_token_compare',
'#settings' =>
array (
'text1' => '[node:state-cce_cclink0]',
'text1_args' =>
array (
0 => 'node',
),
'text2' => 'clicked',
'text2_args' =>
array (
),
'regex' => 0,
),
'#label' => 'Node is being locked',
),
1 =>
array (
'#type' => 'action',
'#name' => 'workflow_ng_action_drupal_message',
'#settings' =>
array (
'message' => 'Node has been locked',
'message_args' =>
array (
),
'error' => 0,
),
'#label' => 'Show a configurable message on the site',
'#weight' => '2',
),
2 =>
array (
'#type' => 'action',
'#name' => 'acl_workflow_ng_add_node_to_acl',
'#argument map' =>
array (
'node' => 'node',
),
'#settings' =>
array (
'acl' => 'Lock',
'acl_args' =>
array (
),
'access_permissions' =>
array (
'view' => 'view',
'edit' => 0,
'delete' => 0,
),
),
),
'#name' => 'cfg_42',
),
'cfg_47' =>
array (
'#type' => 'configuration',
'#altered' => false,
'#event' => 'machine_cce_cclink0_change',
'#label' => 'Node is unlocked',
'#active' => 1,
'#module' => 'workflow-ng',
0 =>
array (
'#type' => 'condition',
'#name' => 'workflow_ng_condition_token_compare',
'#negate' => 1,
'#settings' =>
array (
'text1' => '[node:state-cce_cclink0]',
'text1_args' =>
array (
0 => 'node',
),
'text2' => 'clicked',
'text2_args' =>
array (
),
'regex' => 0,
),
),
1 =>
array (
'#type' => 'action',
'#name' => 'acl_workflow_ng_remove_node_from_acl',
'#argument map' =>
array (
'node' => 'node',
),
'#settings' =>
array (
'acl' => 'Lock',
'acl_args' =>
array (
),
),
),
2 =>
array (
'#type' => 'action',
'#name' => 'workflow_ng_action_drupal_message',
'#settings' =>
array (
'message' => 'Node has been unlocked',
'message_args' =>
array (
),
'error' => 0,
),
),
'#name' => 'cfg_47',
),
'cfg_51' =>
array (
'#type' => 'configuration',
'#altered' => false,
'#event' => 'user_login',
'#label' => 'Add user to Lock ACL',
'#active' => 1,
'#module' => 'workflow-ng',
0 =>
array (
'#type' => 'action',
'#name' => 'acl_workflow_ng_add_user_to_acl',
'#argument map' =>
array (
'account' => 'user',
),
'#settings' =>
array (
'acl' => 'Lock',
'acl_args' =>
array (
),
),
),
'#name' => 'cfg_51',
),
)