You are here

private function FeedsCommerceProductMultiProcessor::isBundleValid in Commerce Feeds multitype 7

Check if the bundle is a valid product type.

Parameters

string $bundle: The bundle name

Return value

bool TRUE if the product type is valid; FALSE otherwise

1 call to FeedsCommerceProductMultiProcessor::isBundleValid()
FeedsCommerceProductMultiProcessor::getBundle in plugins/FeedsCommerceProductMultiProcessor.inc
Read the current FeedsParserResult item and return the bundle value if present and valid.

File

plugins/FeedsCommerceProductMultiProcessor.inc, line 130
Class definition of FeedsCommerceProductMultiProcessor.

Class

FeedsCommerceProductMultiProcessor
Creates products of different types from feed items.

Code

private function isBundleValid($bundle) {
  $types = commerce_product_types();
  return isset($types[$bundle]);
}