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.
As part of my Google Summer of Code '12 project, I will extend the email field with microdata support.
Comment | File | Size | Author |
---|---|---|---|
#1 | email_microdata_extension-1613346-1.patch | 2.21 KB | colette |
Comments
Comment #1
colette CreditAttribution: colette commentedThis patch should take care of the issue.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedI 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.
Comment #3
mh86 CreditAttribution: mh86 commentedThanks 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?
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedThree years later, the patch still applies & adds the desired functionality. RTBC.