You are here

function uuid_commerce_product_features_rebuild in UUID Features Integration 7

Implements hook_features_rebuild().

Rebuilds products based on UUID from code defaults.

1 call to uuid_commerce_product_features_rebuild()
uuid_commerce_product_features_revert in includes/uuid_commerce_product.features.inc
Implements hook_features_revert().

File

includes/uuid_commerce_product.features.inc, line 140
Features hooks for the uuid_commerce_product features component.

Code

function uuid_commerce_product_features_rebuild($module) {
  $return = TRUE;
  if (function_exists('uuid_term_features_rebuild')) {

    // Import the terms first.
    uuid_term_features_rebuild($module);
  }
  $products = features_get_default('uuid_commerce_product', $module);
  if (!empty($products)) {
    $return = uuid_commerce_product_features_rebuild_products($products, $module);
    $entity_type = 'commerce_product';
    module_invoke_all('uuid_entity_features_rebuild_complete', $entity_type, $products, $module);
  }
  return $return;
}