+ 'description' => t('This field stores numeric keys from key/value lists of allowed values where the key is a simple alias for the position of the value, i.e. 0|First option, 1|Second option, 2|Third option.'),

- $description = '<p>' . t('The possible values this field can contain. Enter one value per line, in the format key|label.');

- if ($field['type'] == 'list_number') {

- $description .= '<br/>' . t('The key is the stored value, and must be numeric. The label will be used in displayed values and edit forms.');

- $description .= '<br/>' . t('The label is optional: if a line contains a single number, it will be used as key and label.');

- $description .= '<br/>' . t('Lists of labels are also accepted (one label per line), only if the field does not hold any values yet. Numeric keys will be automatically generated from the positions in the list.');

- }

- else {

- $description .= '<br/>' . t('The key is the stored value. The label will be used in displayed values and edit forms.');

- $description .= '<br/>' . t('The label is optional: if a line contains a single string, it will be used as key and label.');

- }

- $description .= '</p>';

- $form['allowed_values']['#description'] = $description;

-

- break;

-

- case 'list_boolean':

- $values = $settings['allowed_values'];

- $off_value = array_shift($values);

- $on_value = array_shift($values);

-

- $form['allowed_values'] = array(

- '#type' => 'value',

- '#description' => '',

- '#value_callback' => 'list_boolean_allowed_values_callback',

- '#access' => empty($settings['allowed_values_function']),

- );

- $form['allowed_values']['on'] = array(

- '#type' => 'textfield',

- '#title' => t('On value'),

- '#default_value' => $on_value,

- '#required' => FALSE,

- '#description' => t('If left empty, "1" will be used.'),

- // Change #parents to make sure the element is not saved into field

- // settings.

- '#parents' => array('on'),

- );

- $form['allowed_values']['off'] = array(

- '#type' => 'textfield',

- '#title' => t('Off value'),

- '#default_value' => $off_value,

- '#required' => FALSE,

- '#description' => t('If left empty, "0" will be used.'),

- // Change #parents to make sure the element is not saved into field

- // settings.

- '#parents' => array('off'),

- );

-

- // Link the allowed value to the on / off elements to prepare for the rare

+ '#description' => '<p>' . t('The possible values this field can contain. Enter one value per line, in the format key|label. The key is the value that will be stored in the database, and must be a %type value. The label is optional, and the key will be used as the label if no label is specified.', array('%type' => $field['type'] == 'list_text' ? t('text') : t('numeric'))) . '</p>',

$form['allowed_values']['#description'] .= '<p>' . t("The 'checkboxes/radio buttons' widget will display checkboxes if the <em>Number of values</em> option is greater than 1 for this field, otherwise radios will be displayed.") . '</p>';