drupal_set_message(t('Created sample product with title !title and sku !sku',array('!title'=>l($extras['title'],'admin/commerce/products/'.$product_id),'!sku'=>$extras['sku'])));
}
/**
* Create a product programmatically.
*
* This is stolen shamelessly from commerce_bpc. Thanks for the help here!
*
* @param $product_type
* (string) The name of the product type for which products should be created.
* @param $price
* Decimal amount of price. If additional fields need to be populated they
* can be populated in exactly the same way as the commerce_price field.
* @param $extras
* An array for the values of 'extra fields' defined for the product type
* entity, or patterns for these. Recognized keys are:
* - status
* - uid
* - sku
* - title
* Note that the values do NOT come in the form of complex arrays (as they
* are not translatable, and can only have single values).