function theme_uc_attribute_option in Ubercart 6.2
Same name and namespace in other branches
- 7.3 uc_attribute/uc_attribute.theme.inc \theme_uc_attribute_option()
Displays an attribute option with an optional total or adjustment price.
Parameters
$option: The option name.
$price: The price total or adjustment, if any.
See also
1 theme call to theme_uc_attribute_option()
- _uc_attribute_alter_form in uc_attribute/
uc_attribute.module - Helper function for uc_attribute_form_alter().
File
- uc_attribute/
uc_attribute.module, line 1416
Code
function theme_uc_attribute_option($option, $price) {
$output = $option;
if ($price) {
$output .= ', ' . $price;
}
return $output;
}