<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. So in this case, I need to modify the menu item to be:</div><div><div><br></div><div> $items['node/%node/clone_comment'] = array(</div><div> 'access callback' => 'clone_access_cloning',</div><div> 'access arguments' => array(1),</div><div> 'page callback' => 'monographs_node_check',</div><div> 'page arguments' => array(1, 2),</div><div> 'title' => 'Create For Comment version',</div><div> 'type' => MENU_LOCAL_ACTION,</div><div> );</div></div><div><br></div><div>2) MENU_CONTEXT_INLINE has nothing to do with action_links. 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. </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 <<a href="mailto:killshot91@gmail.com">killshot91@gmail.com</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>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. I would like to add a couple more links at the top of the page similar to the one node_clone already adds. 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> $items['node/%node/clone/comment'] = array(<br> 'access callback' => 'clone_access_cloning',<br> 'access arguments' => array(1),<br> 'page callback' => 'monographs_node_check',<br> 'page arguments' => array(1, 3),<br> 'title' => 'Create For Comment version',<br> 'weight' => 5,<br> 'type' => MENU_LOCAL_ACTION,<br> 'context' => MENU_CONTEXT_INLINE,<br> );<br><br> $items['node/%node/clone/production'] = array(<br> 'access callback' => 'clone_access_cloning',<br> 'access arguments' => array(1),<br> 'page callback' => 'monographs_node_check',<br> 'page arguments' => array(1, 3),<br> 'title' => 'Create production version',<br> 'weight' => 5,<br> 'type' => MENU_LOCAL_ACTION,<br> 'context' => MENU_CONTEXT_INLINE,<br> );<br><br> return $items;<br>}<br><br>From what I've read and seen in other implementations, this is all I should need. 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. It's also getting to my custom callback (when the URL accessed manually), so I know that part is okay. For some reason the links aren't being added to the $action_links variable in page.tpl.php. Is there something else I'm missing?<br><br>Thanks.<br><br>Steve</div></blockquote></div><br></div></body></html>