You are here

public function FeedsCommerceProductProcessor::getMappingTargets in Commerce Feeds 7

Return available mapping targets.

File

plugins/FeedsCommerceProductProcessor.inc, line 147
Class definition of FeedsCommerceProductProcessor.

Class

FeedsCommerceProductProcessor
Creates products from feed items.

Code

public function getMappingTargets() {
  $targets = parent::getMappingTargets();
  $targets += array(
    'product_id' => array(
      'name' => t('Product ID'),
      'description' => t('The id of the product. NOTE: use this feature with care, product ids are usually assigned by Drupal Commerce.'),
      'optional_unique' => TRUE,
    ),
    'sku' => array(
      'name' => t('Product SKU'),
      'description' => t('The product identifier. Must be unique.'),
      'optional_unique' => TRUE,
    ),
    'title' => array(
      'name' => t('Product title'),
      'description' => t('The product title.'),
    ),
    'status' => array(
      'name' => t('Product status'),
      'description' => t('Status of the product.'),
    ),
    'uid' => array(
      'name' => t('User ID'),
      'description' => t('The Drupal user ID of the product owner.'),
    ),
  );
  $this
    ->getHookTargets($targets);
  return $targets;
}