Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 393351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:14:55+00:00 2026-05-12T16:14:55+00:00

I have used the menu_breadcrumb module as the basis for a module that produces

  • 0

I have used the menu_breadcrumb module as the basis for a module that produces a breadcrumb based on the current URL path. It works great on regular nodes, but on any pages that are rendered by the Views module, the breadcrumb cannot get the title of the page. The module’s call to drupal_get_title() returns an empty value.

I wouldn’t be so surprised by this except that I have another Drupal site that does exactly the same thing, and it works correctly. The only difference is that this site is based on the Acquia Drupal distribution, and that it the other site where it works hasn’t been updated in a while, so has older versions of both Drupal core and Views.

I read something about module weights, and tried setting the weight on my breadcrumb module to a really high value, but that didn’t help.

Thanks for any ideas!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:14:56+00:00Added an answer on May 12, 2026 at 4:14 pm

    This sounds like an execution order problem. Looking at the menu_breadcrumb module, it does it’s manipulation on hook_init, whereas the views module makes its call to drupal_set_title in the execute method of the views_plugin_display_page, which happens at a later stage. Manipulating the module weight does not help in cases like this, as the weights only determine the call/execution order per hook, but they do not effect the execution order of whole modules. (In other words, a ‘heavier’ modules hook_init will get called after the hook_init of a lighter module, but still before e.g. the hook_nodeapi of the lighter module.)

    I’m a bit surprised that this works on the other site as you stated – it might be that the drupal_set_title call of views got moved in later versions, but I doubt that, as I remember facing exactly this problem about a year ago. Maybe the menu_breadcrumb module changed?

    However, I ‘solved’ this back then by moving the breadcrumb manipulation from hook_init to somemodule_preprocess_page(), adjusting $variables['breadcrumb'] in there directly instead of calling drupal_set_breadcrumb. This is not optimal as it disables any other breadcrumb manipulation that might be happening before the page themeing, but if you know that you always want your breadcrumb, this might well be an advantage.

    As an alternative, one might implement one of the views hooks in the breadcrumb manipulation module, e.g. hook_views_pre_render and check if the title is already set there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.