You are here

function email_field_widget_settings_form in Email Field 7

Implements hook_field_widget_settings_form().

File

./email.module, line 161
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' => 'textfield',
    '#title' => t('Size of textfield'),
    '#default_value' => $settings['size'],
    '#required' => TRUE,
    '#element_validate' => array(
      '_element_validate_integer_positive',
    ),
  );
  return $form;
}