You are here

function commerce_option_breadcrumb in Commerce Product Option 7

Sets the breadcrumb for administrative option pages.

Parameters

$option_sets: TRUE or FALSE indicating whether or not the breadcrumb should include the option sets administrative page.

2 calls to commerce_option_breadcrumb()
commerce_option_set_delete_form_wrapper in ./commerce_option.module
Form callback wrapper: confirmation form for deleting a option set.
commerce_option_set_form_wrapper in ./commerce_option.module
Form callback wrapper: create or edit a option set.

File

./commerce_option.module, line 380

Code

function commerce_option_breadcrumb($option_sets = FALSE) {
  $breadcrumb = array(
    l(t('Home'), '<front>'),
    l(t('Administration'), 'admin'),
    l(t('Store'), 'admin/commerce'),
    l(t('Configuration'), 'admin/commerce/config'),
  );
  if ($option_sets) {
    $breadcrumb[] = l(t('Option Sets'), 'admin/commerce/config/option-sets');
  }
  drupal_set_breadcrumb($breadcrumb);
}