You are here

function rb_cck_action_insert_value_multiple_form in Rules Bonus Pack 6

Configuration form for 'rb_cck_action_insert_value_multiple'.

File

./rb_cck.module, line 426
Functions for extending CCK field management with Rules.

Code

function rb_cck_action_insert_value_multiple_form($settings, &$form) {
  $form['settings']['field'] = array(
    '#type' => 'select',
    '#title' => t('Multiple-value field'),
    '#options' => rb_cck_get_fields(array(
      'multiple',
    )),
    '#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('Value to insert'),
    '#default_value' => $settings['value'],
    '#description' => t('The value to insert into the field. If the value is
      already present in the field the insertion will be ignored. Note that you
      must enter the raw value – for example NID for node references.'),
  );
}