function commerce_option_set_load in Commerce Product Option 7.2
Same name and namespace in other branches
- 7 commerce_option.module \commerce_option_set_load()
Load a commerce option set.
Parameters
$set_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_set_load_multiple()
3 calls to commerce_option_set_load()
- commerce_option_form_alter in ./
commerce_option.module - Implements hook_form_alter().
- commerce_option_set_delete in ./
commerce_option.module - Delete a commerce option set. Make sure we also delete all commerce options using this bundle.
- commerce_option_set_load_by_name in ./
commerce_option.module - Load a commerce option set by machine name
1 string reference to 'commerce_option_set_load'
- commerce_option_entity_info in ./
commerce_option.module - Implements hook_entity_info().
File
- ./
commerce_option.module, line 375
Code
function commerce_option_set_load($option_set_id, $reset = FALSE) {
$ids = isset($option_set_id) ? array(
$option_set_id,
) : array();
$option_set = commerce_option_set_load_multiple($ids, array(), $reset);
return $option_set ? reset($option_set) : FALSE;
}