You are here

function basic_cart_add_to_cart_button in Basic cart 7.3

Same name and namespace in other branches
  1. 7 basic_cart.module \basic_cart_add_to_cart_button()
  2. 7.2 basic_cart.theme.inc \basic_cart_add_to_cart_button()

Theme function implementation.

1 string reference to 'basic_cart_add_to_cart_button'
basic_cart_theme in ./basic_cart.module
Implements hook_theme().

File

./basic_cart.theme.inc, line 21

Code

function basic_cart_add_to_cart_button($vars) {
  $path = $vars['path'];
  $css_class = $vars['css_class'];
  $options = array(
    'attributes' => array(
      'class' => array(
        $css_class,
      ),
    ),
  );
  return '<div class="basic-cart-add-to-cart">' . l(t('Add to cart'), $path, $options) . '</div>';
}