You are here

function commerce_order_label in Commerce Core 7

Entity label callback: returns the label for an individual order.

1 string reference to 'commerce_order_label'
commerce_order_entity_info in modules/order/commerce_order.module
Implements hook_entity_info().

File

modules/order/commerce_order.module, line 87
Defines the core Commerce order entity and API functions to manage orders and interact with them.

Code

function commerce_order_label($entity, $entity_type) {
  return t('Order @number', array(
    '@number' => $entity->order_number,
  ));
}