function basic_cart_add_to_cart_button in Basic cart 7
Same name and namespace in other branches
- 7.3 basic_cart.theme.inc \basic_cart_add_to_cart_button()
- 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.module, line 149 - Basic cart module file.
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>';
}