You are here

function commerce_option_load_multiple in Commerce Product Option 7.2

Same name and namespace in other branches
  1. 7 commerce_option.module \commerce_option_load_multiple()

Load multiple commerce options.

Parameters

$option_ids: An array of entity IDs or FALSE to return all entities.

$conditions: An array of conditions to match against the {entity} table.

$reset: A boolean indicating that the internal cache should be reset.

Return value

An array of entity objects, indexed by option_id.

4 calls to commerce_option_load_multiple()
commerce_option_add_to_cart_submit in ./commerce_option.module
Cart submit callback function. This is required to create / update the option related to the line item.
commerce_option_load in ./commerce_option.module
Load a commerce option.
commerce_option_load_by_line_item in ./commerce_option.module
Load all options associated with a line item.
commerce_option_load_by_product in ./commerce_option.module
Load all options for a commerce product.

File

./commerce_option.module, line 260

Code

function commerce_option_load_multiple($option_ids, $conditions = array(), $reset = FALSE) {
  return entity_load('commerce_option', $option_ids, $conditions, $reset);
}