<div dir="ltr"><div style>For more details go here: <b><a href="http://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu/7">http://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu/7</a></b></div>
<div style>but basically you need to add an extra index to your menu items array with the key: <strong style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-family:'Lucida Grande','DejaVu Sans','Bitstream Vera Sans',Verdana,Arial,sans-serif;line-height:17.984375px">"menu_name", which by default it is set to navigation, or the main navigation menu.</strong></div>
<div style><span style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline"><font face="Lucida Grande, DejaVu Sans, Bitstream Vera Sans, Verdana, Arial, sans-serif"><span style="line-height:17.984375px">Assuming</span></font><span style="font-family:'Lucida Grande','DejaVu Sans','Bitstream Vera Sans',Verdana,Arial,sans-serif;line-height:17.984375px"> you want them on the primary links menu:</span></span></div>
<div style><strong style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-family:'Lucida Grande','DejaVu Sans','Bitstream Vera Sans',Verdana,Arial,sans-serif;line-height:17.984375px"><span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal">::</span></strong></div>
<div style><strong style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-family:'Lucida Grande','DejaVu Sans','Bitstream Vera Sans',Verdana,Arial,sans-serif;line-height:17.984375px"><span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal">$links = array(</span><br style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal">
<span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal"> 'workflow_overview_add_state' => array(</span><br style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal">
<span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal"> 'title' => t('Add state'),</span><br style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal">
<span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal"> 'href' => "admin/config/workflow/</span><span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal">workflow/state/$workflow->wid"</span><span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal">,</span></strong></div>
<div style><strong style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;line-height:17.984375px"><strong style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline"><span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal"> </span><span style="font-size:13px;line-height:normal"><font face="courier new, monospace">'</font></span></strong><font face="courier new, monospace"><strong style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline">menu_name' => </strong><span style="font-size:13px">'main-menu'</span></font><br style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal">
<span style="font-family:'Courier New',courier,monaco,monospace,sans-serif;font-size:13px;line-height:normal"> ),</span><br></strong></div><div style><strong style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-family:'Lucida Grande','DejaVu Sans','Bitstream Vera Sans',Verdana,Arial,sans-serif;line-height:17.984375px">::</strong></div>
<div style><strong style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-family:'Lucida Grande','DejaVu Sans','Bitstream Vera Sans',Verdana,Arial,sans-serif;line-height:17.984375px">::</strong></div>
<div style><strong style="margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-family:'Lucida Grande','DejaVu Sans','Bitstream Vera Sans',Verdana,Arial,sans-serif;line-height:17.984375px"><br>
</strong></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 15, 2013 at 8:44 AM, Ms. Nancy Wichmann <span dir="ltr"><<a href="mailto:nan_wich@bellsouth.net" target="_blank">nan_wich@bellsouth.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif">
<div><span>I have this code in my hook_menu(), and it works just like I would like.<br><br><span style="font-size:13px"><span style="font-family:'Courier New',courier,monaco,monospace,sans-serif"> foreach (workflow_get_workflows() as $workflow) {<br>
$items["admin/config/workflow/workflow/$workflow->wid"] = array(<br> 'title' => check_plain($workflow->name),<br> 'weight' => $workflow->wid,<br> 'access arguments' => array('administer workflow'),<br>
'page callback' => 'workflow_admin_ui_overview',<br> 'page arguments' => array(4),<br> 'type' => MENU_LOCAL_TASK,<br> );<br> //
@TODO: Put "links" here as MENU_LOCAL_ACTION items?<br> }<br></span></span><br>I'd like to turn these links into action links at the top of each of the pages above.<br>I created a menu item with MENU_LOCAL_ACTION but they didn't show up.<br>
<span style="font-size:13px"><span style="font-family:'Courier New',courier,monaco,monospace,sans-serif"> $links = array(<br> 'workflow_overview_add_state' => array(<br> 'title' => t('Add state'),<br>
'href' => "admin/config/workflow/workflow/state/$workflow->wid",<br> ),<br> 'workflow_overview_edit' => array(<br> 'title' => t('Edit'),<br> 'href' => "admin/config/workflow/workflow/edit/$workflow->wid",<br>
),<br> 'workflow_overview_delete' =>
array(<br> 'title' => t('Delete'),<br> 'href' => "admin/config/workflow/workflow/delete/$workflow->wid",<br> ),<br> );<br></span></span><br>Does anyone have any tips on this? Do they have to be exactly the same path with an argument</span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'Courier New',courier,monaco,monospace,sans-serif"><span><span style="font-size:medium"><span style="font-family:arial,helvetica,sans-serif">on the end?</span></span><span class=""><font color="#888888"><br>
</font></span></span></div><span class=""><font color="#888888"><div> </div><div><font color="#ff007f" face="bookman old style, new york, times, serif" size="4"><i><b>Nancy</b></i></font></div><br></font></span></div></div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div></div>