Here for the community? On May 9th, we'll be in New Orleans. Don’t miss out!
As part of my Google Summer of Code '12 project, I will extend the email field with microdata support.
This patch should take care of the issue.
I tested this patch and it works. The code does the following:
You can test this by:
There are also automated tests for email/microdata integration that collette wrote and have been committed to microdata module. For the time being, we are putting all automated tests in the main microdata module.
Thanks for the patch.
Most of it looks very clean. But I'm still wondering if there is a better way of handling the hidden email address field formatters, e.g. there is also the invisimail module that exposes a field formatter for the email field module, and maybe there are others I don't know of. Maybe we should do it the other way round: output the microdata only for the plain and mailto formatter and hide it for the rest. What do you think?
Three years later, the patch still applies & adds the desired functionality. RTBC.
Drupal is a registered trademark of Dries Buytaert.