function commerce_autosku_get_settings in Commerce AutoSKU 7
API Helper to get AutoSKU settings for a given product.
3 calls to commerce_autosku_get_settings()
- commerce_autosku_commerce_product_presave in ./
commerce_autosku.commerce.inc - Implements hook_commerce_product_presave().
- commerce_autosku_form_commerce_bpc_create_bulk_form_alter in ./
commerce_autosku.module - Implements hook_form_FORM_ID_alter().
- commerce_autosku_form_commerce_product_product_form_alter in ./
commerce_autosku.module - Implements hook_form_FORM_ID_alter().
File
- ./
commerce_autosku.module, line 202 - Module hooks and helper functions for commerce_autosku
Code
function commerce_autosku_get_settings($product) {
$types = commerce_product_types();
return empty($types[$product->type]['autosku']['pattern']) ? FALSE : $types[$product->type]['autosku'];
}