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.. <br clear="all">
<br>Cheers,<br>Mukesh<br>
<br><br><div class="gmail_quote">On Thu, May 27, 2010 at 5:36 PM, Earnie Boyd <span dir="ltr"><<a href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Mukesh Agarwal wrote:<br>
> I guess you are right.. i just wanted my hook_menu_alter to help me out<br>
> here but turns out that it cannot support dynamic titles.. I can always<br>
> replace "View" by "Take a look" from the hook but dynamic part does not<br>
> work.. Plus it would have been good if menu would not get cached by<br>
> default..<br>
><br>
<br>
</div>This is untested but you should be able to use hook_menu_alter and add<br>
<br>
'title callback' => 'check_plain'<br>
'title argument' => array('My new title')<br>
<br>
--<br>
Earnie<br>
-- <a href="http://progw.com" target="_blank">http://progw.com</a><br>
-- <a href="http://www.for-my-kids.com" target="_blank">http://www.for-my-kids.com</a><br>
<font color="#888888">--<br>
</font><div><div></div><div class="h5">[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br>