Skip navigation
Help

theme_uc_product_add_to_cart

6 uc_product.module theme_uc_product_add_to_cart($node, $teaser = 0, $page = 0)
7 uc_product.theme.inc theme_uc_product_add_to_cart($variables)

Wraps the "Add to Cart" form in a <div>.

Parameters

$variables: An associative array containing:

  • form: A render element representing the add-to-cart form.

Related topics

File

ubercart/uc_product/uc_product.theme.inc, line 43
Theme functions for uc_product module.

Code

function theme_uc_product_add_to_cart($variables) {
  $form = $variables['form'];

  $output = '<div class="add-to-cart">';
  $output .= drupal_render($form);
  $output .= '</div>';

  return $output;
}