1 field_test.field.inc field_test_field_widget_settings_form($field, $instance)

Implements hook_field_widget_settings_form().

File

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

Code

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

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

  return $form;
}