You are here

function content_rules_field_changed_form in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 includes/content.rules.inc \content_rules_field_changed_form()

File

includes/content.rules.inc, line 271
Provides basic rules module support.

Code

function content_rules_field_changed_form($settings, &$form, &$form_state) {
  $settings += array(
    'field_name' => '',
  );
  $form['settings']['field_name'] = array(
    '#type' => 'select',
    '#title' => t('Field'),
    '#options' => content_rules_get_field_names_by_type(),
    '#default_value' => $settings['field_name'],
    '#description' => t('Select the machine-name of the field to look at.'),
    '#required' => TRUE,
  );
}