You are here

function commerce_feeds_feeds_plugins in Commerce Feeds 7

Implements hook_feeds_plugins().

File

./commerce_feeds.module, line 6

Code

function commerce_feeds_feeds_plugins() {
  $path = drupal_get_path('module', 'commerce_feeds') . '/plugins';
  $info = array();
  $info['FeedsCommerceProductProcessor'] = array(
    'name' => 'Commerce Product processor',
    'description' => 'Create and update commerce products.',
    'help' => 'Create and update commerce products from parsed content.',
    'handler' => array(
      'parent' => 'FeedsProcessor',
      'class' => 'FeedsCommerceProductProcessor',
      'file' => 'FeedsCommerceProductProcessor.inc',
      'path' => $path,
    ),
  );
  if (module_exists('commerce_customer')) {
    $info['FeedsCommerceCustomerProfileProcessor'] = array(
      'name' => 'Commerce Customer Profile processor',
      'description' => 'Create and update commerce customer profiles.',
      'help' => 'Create and update commerce customer profiles from parsed content.',
      'handler' => array(
        'parent' => 'FeedsProcessor',
        'class' => 'FeedsCommerceCustomerProfileProcessor',
        'file' => 'FeedsCommerceCustomerProfileProcessor.inc',
        'path' => $path,
      ),
    );
  }
  if (module_exists('commerce_coupon')) {
    $info['FeedsCommerceCouponProcessor'] = array(
      'name' => 'Commerce Coupon processor',
      'description' => 'Create and update coupons.',
      'help' => 'Create and update coupons from parsed content.',
      'handler' => array(
        'parent' => 'FeedsProcessor',
        'class' => 'FeedsCommerceCouponProcessor',
        'file' => 'FeedsCommerceCouponProcessor.inc',
        'path' => $path,
      ),
    );
  }
  return $info;
}