Title showing 'Home' on Tabs I am creating a module for searching a library of books.  I have created a set of tabs on the module display page.


Search
Results
Item


The title when the Search page is selected (or default) is as I would expect "Search" however when I go to either of the other tabs (via link or a click) the title of the page is shown as "Home".  While not a major issue it doesnt look good.

I have set the 'title' attribute of the render array for each page to 'Results' and 'Item Details' respectively.  How do I force this title rather than 'Home'.

I have noticed the same behaviour for pages using 'MENU_CALLBACK'.
The page title is by default the title defined in hook_menu for the menu item. If you want to alter the title, you should use drupal_set_title.

Note: Drupal set title can't be used to late in the theming process (like template_preprocess_page), as the value for the title has already been populated at that point. Using it in the menu callback should work just fine.