<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">For those of you eagerly awaiting the answer to this issue, there were two things I had to correct:<div><br></div><div>1) Since the link is on the node edit page, the parent URL needs to be node/%node (i.e. node/2), not node/%node/clone. &nbsp;So in this case, I need to modify the menu item to be:</div><div><div><br></div><div>&nbsp; $items['node/%node/clone_comment'] = array(</div><div>&nbsp; &nbsp; 'access callback' =&gt; 'clone_access_cloning',</div><div>&nbsp; &nbsp; 'access arguments' =&gt; array(1),</div><div>&nbsp; &nbsp; 'page callback' =&gt; 'monographs_node_check',</div><div>&nbsp; &nbsp; 'page arguments' =&gt; array(1, 2),</div><div>&nbsp; &nbsp; 'title' =&gt; 'Create For Comment version',</div><div>&nbsp; &nbsp; 'type' =&gt; MENU_LOCAL_ACTION,</div><div>&nbsp; );</div></div><div><br></div><div>2) MENU_CONTEXT_INLINE has nothing to do with action_links. &nbsp;In fact, when tabs and action links are being generated in the in menu_local_tasks() function, menu items with a context of MENU_CONTEXT_INLINE are specifically filtered out.</div><div><br></div><div>Once I fixed those, my action links showed up just fine. &nbsp;</div><div><br></div><div>My preference would be to have the production and comment strings in their own part of the URL (i.e / node/2/clone/comment) so I don't have to parse a string, so if I anyone has a suggestion on how to do that, I'm all ears.</div><div><br></div><div>Thanks.</div><div><br></div><div>Steve<br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Steve Edwards &lt;<a href="mailto:killshot91@gmail.com">killshot91@gmail.com</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">February 16, 2012 10:43:31 AM PST<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><a href="mailto:support@drupal.org">support@drupal.org</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Adding Local Action Link</b><br></span></div><br><div>I am building some functionality based on node_clone module that will allow me to clone certain node types and then implement hook_node_clone_alter() to modify some of the node content. &nbsp;I would like to add a couple more links at the top of the page similar to the one node_clone already adds. &nbsp;I've created my hook_menu implementations, cleared the cache, and rebuilt the menus, but the links are not getting added to the $action_links menu.<br><br>Here's my code:<br><br>/**<br> * Implementation of hook_menu().<br> */<br>function monographs_menu() {<br> &nbsp;$items['node/%node/clone/comment'] = array(<br> &nbsp;&nbsp;&nbsp;'access callback' =&gt; 'clone_access_cloning',<br> &nbsp;&nbsp;&nbsp;'access arguments' =&gt; array(1),<br> &nbsp;&nbsp;&nbsp;'page callback' =&gt; 'monographs_node_check',<br> &nbsp;&nbsp;&nbsp;'page arguments' =&gt; array(1, 3),<br> &nbsp;&nbsp;&nbsp;'title' =&gt; 'Create For Comment version',<br> &nbsp;&nbsp;&nbsp;'weight' =&gt; 5,<br> &nbsp;&nbsp;&nbsp;'type' =&gt; MENU_LOCAL_ACTION,<br> &nbsp;&nbsp;&nbsp;'context' =&gt; MENU_CONTEXT_INLINE,<br> &nbsp;);<br><br> &nbsp;$items['node/%node/clone/production'] = array(<br> &nbsp;&nbsp;&nbsp;'access callback' =&gt; 'clone_access_cloning',<br> &nbsp;&nbsp;&nbsp;'access arguments' =&gt; array(1),<br> &nbsp;&nbsp;&nbsp;'page callback' =&gt; 'monographs_node_check',<br> &nbsp;&nbsp;&nbsp;'page arguments' =&gt; array(1, 3),<br> &nbsp;&nbsp;&nbsp;'title' =&gt; 'Create production version',<br> &nbsp;&nbsp;&nbsp;'weight' =&gt; 5,<br> &nbsp;&nbsp;&nbsp;'type' =&gt; MENU_LOCAL_ACTION,<br> &nbsp;&nbsp;&nbsp;'context' =&gt; MENU_CONTEXT_INLINE,<br> &nbsp;);<br><br> &nbsp;return $items;<br>}<br><br>From what I've read and seen in other implementations, this is all I should need. &nbsp;The menu item is created in the menu_router table (I can access it manually from the URL in a browser), and I've verified that the access callback is returning TRUE. &nbsp;It's also getting to my custom callback (when the URL accessed manually), so I know that part is okay. &nbsp;For some reason the links aren't being added to the $action_links variable in page.tpl.php. &nbsp;Is there something else I'm missing?<br><br>Thanks.<br><br>Steve</div></blockquote></div><br></div></body></html>