function _taxonomy_CrumbsMultiPlugin_termReference_commerce_product::findParent__product_x in Crumbs, the Breadcrumbs suite 7
Match "product/%" router path. This works only in combination with commerce_product_page module.
File
- plugins/
crumbs.taxonomy.inc, line 147
Class
Code
function findParent__product_x($path, $item) {
$product = $item['map'][1];
// Load the product if it hasn't been loaded due to a missing wildcard loader.
$product = is_numeric($product) ? commerce_product_load($product) : $product;
$parent_path = $this
->_findParentPath($product);
if ($parent_path) {
// TODO: Is 'user' the correct bundle name?
return array(
$product->type => $parent_path,
);
}
}