function email_field_widget_form

cis7 email.module email_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base)
cle7 email.module email_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base)
elmsmedia7 email.module email_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base)
icor7 email.module email_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base)
meedjum_blog7 email.module email_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base)
mooc7 email.module email_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base)

Implements hook_field_widget_form().

File

sites/all/modules/ulmus/email/email.module, line 178
Module file for the email module, which creates a email address field.

Code

function email_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base) {
  $element = $base;
  $element['email'] = $base + array(
    '#type' => 'textfield',
    '#default_value' => isset($items[$delta]['email']) ? $items[$delta]['email'] : NULL,
    '#size' => $instance['widget']['settings']['size'],
    '#prefix' => '<div class="text-full-wrapper">',
    '#suffix' => '</div>',
  );
  return $element;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.