function rb_cck_action_set_field_unvalidated_form in Rules Bonus Pack 6
Configuration form for 'rb_cck_action_set_field_unvalidated'.
File
- ./
rb_cck.module, line 391 - Functions for extending CCK field management with Rules.
Code
function rb_cck_action_set_field_unvalidated_form($settings, &$form) {
$form['settings']['field'] = array(
'#type' => 'select',
'#title' => t('Field'),
'#options' => rb_cck_get_fields(),
'#default_value' => $settings['field'],
'#description' => t('Note that only fields with a single storage values are
supported.'),
);
$form['settings']['value'] = array(
'#type' => 'textfield',
'#title' => t('Raw value'),
'#default_value' => $settings['value'],
'#description' => t('The value to insert into the field. Feel free to use
tokens without being disturbed by select widgets or validators! Note that
you must enter the raw value – for example NID for node references.'),
);
}