You are here

function asin_field_formatter_info in Amazon Product Advertisement API 6

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

Implementation of hook_field_formatter_info().

File

asin/asin.module, line 185
Defines a field type for referencing an Amazon product.

Code

function asin_field_formatter_info() {
  return array(
    'default' => array(
      'label' => t('Small image and basic info'),
      'field types' => array(
        'asin',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'details' => array(
      'label' => t('Small image and full info'),
      'field types' => array(
        'asin',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'thumbnail' => array(
      'label' => t('Large image'),
      'field types' => array(
        'asin',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'inline' => array(
      'label' => t('Title as link'),
      'field types' => array(
        'asin',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
  );
}