Is it possible, using a module, to override a breadcrumd definition defined in another module's hook_node_view()?
- Module
property_bc
sets a custom breadcrumb for nodes of typeProperty
. - Module
property_bc_plus
wants to override that behaviour.
property_bc
implementation of hook_node_view
would be:
<?php
/**
* Implementation of hook_node_view().
*/
function property_bc_node_view($node, $view_mode, $langcode) {
if ($node->type == 'property') {
$breadcrumb = array();
$breadcrumb[] = l(t('Home'), NULL);
$breadcrumb[] = l(check_plain($node->name), "user/$node->uid");
$breadcrumb[] = l(t('Properties'), "user/$node->uid/properties");
drupal_set_breadcrumb($breadcrumb);
}
}