Force the content author to the current user
Last modified: November 19, 2007 - 19:56
Required modules: -
array (
'config3' =>
array (
'#type' => 'configuration',
'#label' => 'Force content author to current user',
'#event' => 'node_update',
'#active' => true,
'#module' => 'workflow-ng',
0 =>
array (
'#type' => 'condition',
'#negate' => 1,
'#argument map' =>
array (
'author' => 'user1',
'user' => 'user2',
),
'#name' => 'workflow_ng_condition_user_comparison',
'#label' => 'user is content author',
),
1 =>
array (
'#type' => 'action',
'#argument map' =>
array (
'node' => 'node',
'user' => 'author',
),
'#name' => 'workflow_ng_action_node_set_author',
'#label' => 'Set the current user as content author',
),
'#name' => 'config3',
),
)