You are here

function commerce_product_delete_multiple in Commerce Core 7

Deletes multiple products by ID.

Parameters

$product_ids: An array of product IDs to delete.

Return value

TRUE on success, FALSE otherwise.

2 calls to commerce_product_delete_multiple()
CommerceProductCRUDTestCase::testCommerceProductCrud in modules/product/tests/commerce_product.test
Test the product CRUD functions.
commerce_product_delete in modules/product/commerce_product.module
Deletes a product by ID.

File

modules/product/commerce_product.module, line 597
Defines the core Commerce product entity, including the entity itself, the bundle definitions (product types), and various API functions to manage products and interact with them through forms and autocompletes.

Code

function commerce_product_delete_multiple($product_ids) {
  return entity_get_controller('commerce_product')
    ->delete($product_ids);
}