Skip navigation
Help

theme_uc_attribute_option

6 uc_attribute.module theme_uc_attribute_option($option, $price)
7 uc_attribute.theme.inc theme_uc_attribute_option($variables)

Displays an attribute option with an optional total or adjustment price.

Parameters

$variables: An associative array containing:

  • option: The option name.
  • price: The price total or adjustment, if any.

Return value

string The HTML output.

See also

_uc_attribute_alter_form()

Related topics

1 theme call to theme_uc_attribute_option()

File

ubercart/uc_attribute/uc_attribute.theme.inc, line 22
Theme functions for the uc_attribute module.

Code

function theme_uc_attribute_option($variables) {
  $output = $variables['option'];
  if ($variables['price']) {
    $output .= ', ' . $variables['price'];
  }
  return $output;
}