| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: workflow_ng_node.inc,v 1.1.2.3.2.9 2008/07/11 08:19:46 fago Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file Workflow-ng integration for the node module |
* @file Workflow-ng integration for the node module |
| 170 |
), |
), |
| 171 |
'#module' => 'Node', |
'#module' => 'Node', |
| 172 |
), |
), |
| 173 |
|
'workflow_ng_action_set_node_title' => array( |
| 174 |
|
'#label' => t('Set content title'), |
| 175 |
|
'#arguments' => array( |
| 176 |
|
'node' => array('#entity' => 'node', '#label' => t('Content')), |
| 177 |
|
), |
| 178 |
|
'#module' => 'Node', |
| 179 |
|
), |
| 180 |
'workflow_ng_action_add_node' => array( |
'workflow_ng_action_add_node' => array( |
| 181 |
'#label' => t('Add new content'), |
'#label' => t('Add new content'), |
| 182 |
'#arguments' => array( |
'#arguments' => array( |
| 238 |
} |
} |
| 239 |
|
|
| 240 |
/** |
/** |
| 241 |
|
* Sets a node's title |
| 242 |
|
*/ |
| 243 |
|
function workflow_ng_action_set_node_title($node, $settings, &$arguments, &$log) { |
| 244 |
|
extract( workflow_ng_token_replace_all(array('title'), $settings, $arguments, $log) ); |
| 245 |
|
$node->title = $title; |
| 246 |
|
return array('node' => $node); |
| 247 |
|
} |
| 248 |
|
|
| 249 |
|
|
| 250 |
|
/** |
| 251 |
* Action "Add a node" |
* Action "Add a node" |
| 252 |
*/ |
*/ |
| 253 |
function workflow_ng_action_add_node($author, $settings, &$arguments, &$log) { |
function workflow_ng_action_add_node($author, $settings, &$arguments, &$log) { |