function field_test_field_instance_settings_form

7.x field_test.field.inc field_test_field_instance_settings_form($field, $instance)

Implements hook_field_instance_settings_form().

File

drupal/modules/field/tests/field_test.field.inc, line 149
Defines a field type and its formatters and widgets.

Code

function field_test_field_instance_settings_form($field, $instance) {
  $settings = $instance['settings'];

  $form['test_instance_setting'] = array(
    '#type' => 'textfield',
    '#title' => t('Field test field instance setting'),
    '#default_value' => $settings['test_instance_setting'],
    '#required' => FALSE,
    '#description' => t('A dummy form element to simulate field instance setting.'),
  );

  return $form;
}