Just wanted to know if there was a specific reason why this modules supports the text and image fields, but not the core number field. I wanted to add Microdata for the prepTime and cookTime properties as specified at http://schema.org/Recipe and was using a number_integer field. I wrote a simple hook_field_info_alter to add support for this field type and it seems to be working just fine:
/**
* Implements hook_field_info_alter().
*/
function d7dev_field_info_alter(&$info) {
$info['number_integer']['microdata'] = TRUE;
}
Comments
Comment #1
Anonymous (not verified) commentedHmm, microdata actually does have support for the integer field. If you check microdata_field_info_alter, you'll see the following line.
Can you try removing your implementation and clearing the caches to see if it still works?
Comment #2
Anonymous (not verified) commentedNo response from OP.