function commerce_order_ui_token_info in Commerce Core 7
Implements hook_token_info().
File
- modules/
order/ commerce_order_ui.tokens.inc, line 11 - Builds placeholder replacement tokens for UI bound order-related data.
Code
function commerce_order_ui_token_info() {
$order = array();
// @deprecated since 7.x-1.2; use [commerce-order:customer-url] instead.
$order['url'] = array(
'name' => t('URL'),
'description' => t('The URL of the order.'),
);
$order['customer-url'] = array(
'name' => t('URL'),
'description' => t('The URL for customers to view the order.'),
);
$order['admin-url'] = array(
'name' => t('URL'),
'description' => t('The URL for administrators to view the order.'),
);
return array(
'tokens' => array(
'commerce-order' => $order,
),
);
}