A code is worth a thousand words

Alter node breadcrumbs by hook form your module in Drupal 7

You are here

I had a problem with path breadcrumbs where I couldn't get taxonomy therms through commerce product reference. So I had to disable the path breadcrumb for the node and do it manually. I didn't want to put the code to theme, because it had to work irrelevant from it. Here is the example of altering node breadcrumbs via hook from my module in Drupal 7.