1 email.module email_field_widget_settings_form($field, $instance)

Implements hook_field_widget_settings_form().

File

core/modules/email/email.module, line 115
Module file for the email module, which creates a email address field.

Code

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

  $form['size'] = array(
    '#type' => 'number',
    '#title' => t('Size of textfield'),
    '#default_value' => $settings['size'],
    '#required' => TRUE,
    '#min' => 1,
  );

  return $form;
}