You are here

function commerce_invoice_ui_invoice_title in Commerce Invoice 7

Menu item title callback: returns the number of an invoice for its pages.

Parameters

$invoice: The invoice object as loaded via the URL wildcard.

Return value

A page title of the format "Invoice ##".

1 string reference to 'commerce_invoice_ui_invoice_title'
commerce_invoice_ui_menu in ./commerce_invoice_ui.module
Implements hook_menu().

File

./commerce_invoice_ui.module, line 68

Code

function commerce_invoice_ui_invoice_title($invoice) {
  return t('Invoice @number', array(
    '@number' => $invoice->invoice_number,
  ));
}