You are here

function commerce_option_load in Commerce Product Option 7

Same name and namespace in other branches
  1. 7.2 commerce_option.module \commerce_option_load()

Fetch a option object.

Parameters

$option_id: Integer specifying the option id.

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

Return value

A fully-loaded $option object or FALSE if it cannot be loaded.

See also

commerce_option_load_multiple()

File

./commerce_option.module, line 168

Code

function commerce_option_load($option_id, $reset = FALSE) {
  $options = commerce_option_load_multiple(array(
    $option_id,
  ), array(), $reset);
  return reset($options);
}