You are here

function node_field_select_settings in Node Field 7.2

Settings for select field.

1 string reference to 'node_field_select_settings'
node_field_types_info in includes/node_field.field.inc
Node field types info.

File

includes/node_field.field.inc, line 348
Field types, settings, widget and formatters.

Code

function node_field_select_settings($node_field) {
  $form['options'] = [
    '#type' => 'textarea',
    '#title' => t('Options'),
    '#default_value' => !empty($node_field['settings']['options']) ? $node_field['settings']['options'] : NULL,
    '#description' => NODE_FIELD_OPTIONS_FIELD_DESCRIPTION,
  ];
  return $form;
}