You are here

function rb_cck_condition_in_multiple_form in Rules Bonus Pack 6

Configuration form for 'rb_cck_condition_in_multiple'.

File

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

Code

function rb_cck_condition_in_multiple_form($settings, &$form) {
  $form['settings']['field'] = array(
    '#type' => 'select',
    '#title' => t('Field to check'),
    '#options' => rb_cck_get_fields(),
    '#default_value' => $settings['field'],
    '#description' => t('Note that only fields with a single storage values are
      supported.'),
  );
  $form['settings']['values'] = array(
    '#type' => 'textarea',
    '#default_value' => $settings['values'],
    '#title' => t('Values to match'),
    '#description' => t('Enter one value per line. Note that raw values are
      used, such as NID for node references. If any value in the selected field
      matches any value in the list, this condition returns TRUE.'),
  );
}