function commerce_bpc_field_update_instance in Commerce Bulk Product Creation 7.2
Same name and namespace in other branches
- 7 commerce_bpc.module \commerce_bpc_field_update_instance()
Implements hook_field_update_instance().
Rebuilds the menu so that new menu items are created under /admin/commerce/add-bulk if the product type is now available for bulk creation.
File
- ./
commerce_bpc.module, line 142
Code
function commerce_bpc_field_update_instance($instance) {
if ($instance['entity_type'] == 'commerce_product') {
variable_set('menu_rebuild_needed', TRUE);
}
}