Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
When I wrap an entity with entity_metadata_wrapper I can get each field type with the type() method. For example:
$node = node_load(8);
$entity = entity_metadata_wrapper('node', $node);
echo $entity->field_subject->type(); // Prints "text"
echo $entity->field_website_link->type(); // Prints "field_item_link"
echo $entity->field_date_field->type(); // Prints "date"
But for the email field I get "text". IMHO it's wrong, it must be "email" or something similar, to allow the programmer to distinguish it from the normal text fields.
Regards.