| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: workflow_ng_node_forms.inc,v 1.1.2.5 2008/07/11 08:19:46 fago Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file Workflow-ng configuration forms for the node module |
* @file Workflow-ng configuration forms for the node module |
| 75 |
return array('sticky' => $form_values['sticky']); |
return array('sticky' => $form_values['sticky']); |
| 76 |
} |
} |
| 77 |
|
|
| 78 |
|
/** |
| 79 |
|
* Action set node title configuration form |
| 80 |
|
*/ |
| 81 |
|
function workflow_ng_action_set_node_title_form($settings = array(), $argument_info) { |
| 82 |
|
$form = array(); |
| 83 |
|
$form['title'] = array( |
| 84 |
|
'#type' => 'textfield', |
| 85 |
|
'#title' => t('Title'), |
| 86 |
|
'#default_value' => $settings['title'], |
| 87 |
|
'#required' => TRUE, |
| 88 |
|
); |
| 89 |
|
workflow_ng_token_replacement_help($form, $argument_info); |
| 90 |
|
return $form; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
function workflow_ng_action_set_node_title_submit($form_id, $form_values) { |
| 94 |
|
return workflow_ng_token_get_settings(array('title'), $form_values); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
/* |
/* |
| 98 |
* Action "Add a node" configuration form |
* Action "Add a node" configuration form |
| 99 |
*/ |
*/ |