function basic_cart_add_to_cart_button in Basic cart 7.2
Same name and namespace in other branches
- 7.3 basic_cart.theme.inc \basic_cart_add_to_cart_button()
- 7 basic_cart.module \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) {
$nid = $vars['nid'];
return '<div class="basic-cart-add-to-cart">
' . l(t('Add to cart'), 'cart/add/' . $nid, array(
'attributes' => array(
'class' => array(
'button basic-cart-add-to-cart-link',
),
),
)) . '
</div>';
}