The issue over here is that when i use the hook, I do not get arg(1) or menu_get_object() to be able to retrieve the node.. My menu item is 'node/%node/view' so I would have ideally wanted to use menu_get_object but that does not really return anything.. retrieving the title of the node using arg(1) and then querying does not really sound a good idea to me..
Cheers, Mukesh
On Thu, May 27, 2010 at 5:36 PM, Earnie Boyd earnie@users.sourceforge.netwrote:
Mukesh Agarwal wrote:
I guess you are right.. i just wanted my hook_menu_alter to help me out here but turns out that it cannot support dynamic titles.. I can always replace "View" by "Take a look" from the hook but dynamic part does not work.. Plus it would have been good if menu would not get cached by default..
This is untested but you should be able to use hook_menu_alter and add
'title callback' => 'check_plain' 'title argument' => array('My new title')
-- Earnie -- http://progw.com
-- http://www.for-my-kids.com
[ Drupal support list | http://lists.drupal.org/ ]