You are here

function field_test_field_settings_form in Drupal 7

Implements hook_field_settings_form().

File

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

Code

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