You are here

function field_test_field_instance_settings_form in Drupal 7

Implements hook_field_instance_settings_form().

File

modules/field/tests/field_test.field.inc, line 151
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;
}