function commerce_price_components_get_component in Commerce price by components 7
1 string reference to 'commerce_price_components_get_component'
File
- ./
commerce_price_components.module, line 206 - Module file for Price by components.
Code
function commerce_price_components_get_component($data, array $options, $name, $type, $info) {
if (isset($name)) {
$data = reset($data);
return isset($data['price'][$name]) ? $data['price'][$name] : FALSE;
}
}