function hook_commerce_line_item_summary_link_info_alter in Commerce Core 7
Allows you to alter line item summary links.
Parameters
$links: Array of line item summary links keyed by name exposed by hook_commerce_line_item_summary_link_info() implementations.
See also
hook_commerce_line_item_summary_link_info()
1 invocation of hook_commerce_line_item_summary_link_info_alter()
- commerce_line_item_summary_links in modules/
line_item/ commerce_line_item.module - Returns a sorted array of line item summary links.
File
- modules/
line_item/ commerce_line_item.api.php, line 157 - Hooks provided by the Line Item module.
Code
function hook_commerce_line_item_summary_link_info_alter(&$links) {
// Alter the weight of the checkout link to display before the view cart link.
if (!empty($links['checkout'])) {
$links['checkout']['weight'] = -5;
}
}