/**
* Implements hook_commerce_line_item_summary_link_info().
*/
function commerce_cba_commerce_line_item_summary_link_info() {
$cba_widget_settings = variable_get('cba_widget_settings', array());
$checkout_button = commerce_cba_amazoninlinewidget('checkout', $cba_widget_settings);
return array(
'checkout_cba' => array(
'title' => drupal_render($checkout_button),
'attributes' => array('rel' => 'nofollow'),
'weight' => 5,
'html' => TRUE,
'access' => user_access('access checkout') && user_access('access checkout by amazon'),
),
);
}
| Comment | File | Size | Author |
|---|---|---|---|
| Shopping cart block.png | 50.48 KB | dema501 | |
| Views_settings.png | 235.85 KB | dema501 |
Comments
Comment #2
vasikeindeed, it was not there.
@dema501 : thank you
and Congratulations for the first commit on drupal.org.
p.s. please try next time to provide a patch.