function asin_field_info in Amazon Product Advertisement API 6
Same name and namespace in other branches
- 7.2 asin/asin.module \asin_field_info()
- 7 asin/asin.module \asin_field_info()
Implementation of hook_field_info().
Here we indicate that the content module will use its default handling for the view of this field.
Callbacks can be omitted if default handing is used. They're included here just so this module can be used as an example for custom modules that might do things differently.
File
- asin/
asin.module, line 58 - Defines a field type for referencing an Amazon product.
Code
function asin_field_info() {
return array(
'asin' => array(
'label' => t('Amazon item'),
'description' => t('Store the id of a product listed on Amazon.com.'),
),
);
}