function commerce_invoice_ui_set_breadcrumb in Commerce Invoice 7
Sets the breadcrumb for invoice pages.
Parameters
$view_mode: The view mode for the current invoice page, 'administrator' or 'customer'.
1 call to commerce_invoice_ui_set_breadcrumb()
- commerce_invoice_ui_invoice_view in ./
commerce_invoice_ui.module - Generate an array for rendering the given invoice.
File
- ./
commerce_invoice_ui.module, line 78
Code
function commerce_invoice_ui_set_breadcrumb($view_mode = 'administrator') {
$breadcrumb = array();
// Create the breadcrumb array based on the view mode.
if ($view_mode == 'administrator') {
$breadcrumb = array(
l(t('Home'), '<front>'),
l(t('Administration'), 'admin'),
l(t('Store'), 'admin/commerce'),
l(t('Orders', array(), array(
'context' => 'a drupal commerce order',
)), 'admin/commerce/orders'),
);
}
drupal_set_breadcrumb($breadcrumb);
}