You are here

function hook_commerce_backoffice_order_operations_links_alter in Commerce Backoffice 7

Alter the order's megarow operations links.

Parameters

$links: A list of links to provide within the dropbutton, suitable for use in via Drupal's theme('links').

$context: An associative array containing the following key-value pairs:

  • view: The view object.
  • order_id: The order's ID.
1 invocation of hook_commerce_backoffice_order_operations_links_alter()
commerce_backoffice_order_handler_field_order_operations::render in includes/views/handlers/commerce_backoffice_order_handler_field_order_operations.inc
Render the field.

File

./commerce_backoffice_order.api.php, line 19
Documents hooks invoked by the Commerce Backoffice Order module.

Code

function hook_commerce_backoffice_order_operations_links_alter(&$links, $context) {
  if (isset($links['commerce-order-history'])) {
    $links['commerce-order-history']['title'] = t('View history');
  }
}