You are here

function rb_cck_action_remove_value_multiple_form in Rules Bonus Pack 6

Configuration form for 'rb_cck_action_remove_value_multiple'.

File

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

Code

function rb_cck_action_remove_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 remove'),
    '#default_value' => $settings['value'],
    '#description' => t('The value to remove from the multiple-value field. Note
      that you must enter the raw value – for example NID for node references.'),
  );
}