Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
There is an issue with arrays not strings being sent, token_replace_multiple expects $text to be a string....
custom_breadcrumbs.module:
// Token replacement for titles and paths
if (module_exists('token')) {
// Do token replacement.
$types = custom_breadcrumbs_token_types($objs);
$titles = token_replace_multiple($titles, $types);
$paths = token_replace_multiple($paths, $types);
}
$items = _custom_breadcrumbs_get_trail_items($breadcrumb, $titles, $paths);
Comments
Comment #1
StephenRobinson CreditAttribution: StephenRobinson commentedComment #2
StephenRobinson CreditAttribution: StephenRobinson commentedToken.module:
Comment #3
lamp5