You are here

function theme_uc_product_add_to_cart in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_product/uc_product.module \theme_uc_product_add_to_cart()
  2. 6.2 uc_product/uc_product.module \theme_uc_product_add_to_cart()

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

Parameters

array $variables: An associative array containing:

  • form: A render element representing the add-to-cart form.
1 theme call to theme_uc_product_add_to_cart()
uc_product_view in uc_product/uc_product.module
Implements hook_view().

File

uc_product/uc_product.theme.inc, line 44
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;
}