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 &#39;node/%node/view&#39; 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">&lt;<a href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>&gt;</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>
&gt; I guess you are right.. i just wanted my hook_menu_alter to help me out<br>
&gt; here but turns out that it cannot support dynamic titles.. I can always<br>
&gt; replace &quot;View&quot; by &quot;Take a look&quot; from the hook but dynamic part does not<br>
&gt; work.. Plus it would have been good if menu would not get cached by<br>
&gt; default..<br>
&gt;<br>
<br>
</div>This is untested but you should be able to use hook_menu_alter and add<br>
<br>
&#39;title callback&#39; =&gt; &#39;check_plain&#39;<br>
&#39;title argument&#39; =&gt; array(&#39;My new title&#39;)<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>