You are here

function asin_field_info in Amazon Product Advertisement API 7

Same name and namespace in other branches
  1. 6 asin/asin.module \asin_field_info()
  2. 7.2 asin/asin.module \asin_field_info()

Implementation of hook_field_info().

File

asin/asin.module, line 26
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.'),
      'default_widget' => 'asin_text',
      'default_formatter' => 'asin_default',
      'default_token_formatter' => 'asin_plain',
    ),
  );
}