You are here

function theme_uc_product_kit_add_to_cart in Ubercart 7.3

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

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

1 theme call to theme_uc_product_kit_add_to_cart()
uc_product_kit_view in uc_product_kit/uc_product_kit.module
Implements hook_view().

File

uc_product_kit/uc_product_kit.theme.inc, line 71
Theme functions for the uc_product_kit module.

Code

function theme_uc_product_kit_add_to_cart($variables) {
  $form = $variables['form'];
  $output = '<div class="add-to-cart" title="' . t('Click to add to cart.') . '">';
  $output .= drupal_render($form);
  $output .= '</div>';
  return $output;
}