I'm building a menu with hook_menu().
When you're building the array for this you specify a title, which is then passed to the page you call and becomes the page title. It's also the menu item's displayed name.
$items['somewhere/something'] = array(
'title' => 'Something',
'description' => 'something else',
);
This would generate a menu link called "Something", and the page title would be the same. Is there a way to make the menu item's name one thing, but pass along a different title for the page?
I know I can use drupal_set_title()
in the actual hook_page()
function, but I'd have to perform an additional database pull to make that happen in this case, and I'd rather not do that.
drupal_set_title()
cause an extra database query?