You are here

function commerce_bpc_is_combination_field in Commerce Bulk Product Creation 7

Same name and namespace in other branches
  1. 7.2 commerce_bpc.module \commerce_bpc_is_combination_field()

Determine whether a field instance is suitable for combination-generation.

Parameters

array $instance: The instance array describing the instance.

Return value

bool TRUE if the instance can be used to generate combinations, FALSE otherwise.

See also

hook_commerce_bpc_is_combination_field()

3 calls to commerce_bpc_is_combination_field()
commerce_bpc_token_info_by_product_type in ./commerce_bpc.tokens.inc
Collects field-specific tokens for a given product type.
commerce_bpc_token_sample_values in ./commerce_bpc.tokens.inc
Collects sample values of tokens for a given product type.
commerce_bpc_valid_product_type in ./commerce_bpc.module
Check if a product_type is a valid candidate for bulk creation.

File

./commerce_bpc.module, line 583

Code

function commerce_bpc_is_combination_field($instance) {
  return in_array(TRUE, module_invoke_all('commerce_bpc_is_combination_field', $instance));
}