Is it possible to use a path like that : user/%user/word with MENU_NORMAL_ITEM instead of MENU_LOCAL_TASK i hope you understood the title of my topic because i have difficulties to express this problem in english.

I would like to change the menu item which is a tab (saved searches) and put it on my menu block.



So i went to the files of the module and found this:

search_api_saved_searches.module

$items['user/%user/saved-searches'] = array(
'title' =&gt; 'Saved searches',
'description' =&gt; 'View and edit your saved searches.',
'page callback' =&gt; 'search_api_saved_searches_user_listing',
'page arguments' =&gt; array(1),
'access callback' =&gt; 'search_api_saved_search_edit_access',
'access arguments' =&gt; array(1),
'weight' =&gt; 5,
'type' =&gt; MENU_LOCAL_TASK,
'file' =&gt; 'search_api_saved_searches.pages.inc',
);


I know that MENU_LOCAL_TASK is a generally a tab, so i tried MENU_NORMAL_ITEM but it didn't work.

I tried some other thing and removed %user $items['user/saved-searches'] but after that i had many error, i tried to debug them but after many hours i stopped, it was clearly not a good solution to change code directly on a module.

So my question is: Is there a easy way to move a menu item from a tab to a menu block when the path has a wildcard components ? If it's not possible, do you think there is, maybe, a workaround to accomplish what i want to do?

Thanks,
i used views to achieve what i wanted to do but it was not easy because :


Fields was not the same and didn't have the good format
There was no filter "current user"
So i create a custom template using views-view-table.tpl.php.


I don't know if what i did is very good: 


I call global $user in my template, maybe it's a mistake, i don't know if we can do that
Thxs to criticguy, i improved the following code by removing current user test

 &lt;?php foreach ($rows as $row_count =&gt; $row): ?&gt;
    &lt;tr &lt;?php if ($row_classes[$row_count]) { print 'class="' . implode(' ', $row_classes[$row_count]) .'"';  } ?&gt;&gt;
    &lt;?php foreach ($row as $field =&gt; $content): ?&gt;
     &lt;td &lt;?php if ($field_classes[$field][$row_count]) { print 'class="'. $field_classes[$field][$row_count] . '" '; } ?&gt;&lt;?php print drupal_attributes($field_attributes[$field][$row_count]); ?&gt;&gt;
     &lt;?php if($field == 'last_execute') : ?&gt;
       &lt;?php $last_execute = t('@time ago', array('@time' =&gt; format_interval(REQUEST_TIME - $content))); ?&gt;
         &lt;?php print $last_execute; ?&gt;
       &lt;?php elseif($field == 'created'): ?&gt;    
         &lt;?php $created = format_date($content, 'short'); ?&gt;
         &lt;?php print $created; ?&gt;
       &lt;?php elseif($field == 'notify_interval'): ?&gt;    
         &lt;?php $interval = format_interval($content, 1); ?&gt;
          &lt;?php print $interval; ?&gt;
       &lt;?php elseif($field == 'results'): ?&gt;  
          &lt;?php $tab = explode(',', $content); ?&gt;
          &lt;?php $x = 1 ?&gt;
          &lt;ul&gt;
          &lt;?php foreach($tab as $value): ?&gt;
            &lt;li&gt;
            &lt;?php print '&lt;a href="'.url().'node/'.$value.'"&gt;Resultat '.$x.'&lt;/a&gt;'; ?&gt;
            &lt;/li&gt;
            &lt;?php $x++ ?&gt;
          &lt;?php endforeach ?&gt;
          &lt;/ul&gt; 
       &lt;?php else: ?&gt;
        &lt;?php print $content; ?&gt;    
       &lt;?php endif ?&gt;
  &lt;/td&gt;
&lt;?php endforeach; ?&gt;



    


Final result:

I'm always interested by my question about MENU_NORMAL_ITEM and MENU_LOCAL_TASK.