You are here

function node_field_select_or_other_settings in Node Field 7.2

Settings for select_or_other field.

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

File

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

Code

function node_field_select_or_other_settings($node_field) {
  $form = [];
  $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,
  ];
  $form['other_title'] = [
    '#type' => 'textfield',
    '#title' => t('Other Title'),
    '#default_value' => !empty($node_field['settings']['other_title']) ? $node_field['settings']['other_title'] : NULL,
    '#description' => t('Other field title.'),
  ];
  return $form;
}