Do not copy and paste this issue into your own issue
This issue was used as an example in the book Drupal 7 Development by Example Beginner's Guide. Creating copies of this text, or creating other test posts, takes away time for developers to work on legitimate issues. So please don't do it. For more information, see

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 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;

I woud be happy to submit a patch if this is a desired feature.


linclark’s picture

That would be great. IIRC, the only reason I hadn't added it yet is because I haven't written the test to check it yet. If you could add a test for number fields to the SimpleTest for core fields, then this would be ready to go. I'm not sure if you've written tests before, but I can help if you need it.

linclark’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

silverwing’s picture

silverwing’s picture

Issue summary: View changes