<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><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="color: rgb(0, 0, 0); font-size: 13px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span><span style="font-size: medium;"><span style="font-family: arial,helvetica,sans-serif;">on the end?</span></span><br></span></div><div> </div><div><font color="#ff007f" face="bookman old style, new york, times, serif" size="4"><i><b>Nancy</b></i></font></div><br></div></body></html>