commerce_product_delete_multiple

  1. commerce
    1. 7
Versions
7 commerce_product_delete_multiple($product_ids)

Deletes multiple products by ID.

Parameters

$product_ids An array of product IDs to delete.

Return value

TRUE on success, FALSE otherwise.

Code

modules/product/commerce_product.module, line 572

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