I am trying to use the Fields API to list all of the Ubercart product fields (cost, model, sell_price, weight, etc). I have tried

field_info_instances('node', 'product')
field_info_extra_fields('node', 'product', 'form')

field_info_instances() gives me the image field and the catalog taxonomy, but none of them return the fields added by uc_product_field_extra_fields(). I thought for sure field_info_extra_fields() would return it, but all I get back is title and path. What is the correct API call to list these fields? I don't need them in display form or anything like that.

I'm using Drupal 7.12 and Ubercart 3.0.

1 Answer 1


It turns out that in uc_product_field_extra_fields(), the extra fields are defined for 'display' and not for 'form'. The correct call is field_info_extra_fields('node', 'product', 'display');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.