Can't get local task to show

Stmated - March 27, 2008 - 16:08

I have these two menu entries:

<?php
$items
['series/list'] = array(
   
'title' => 'Series list',
   
'page callback' => 'series_page_list',
   
'access callback' => true,
   
'type' => MENU_NORMAL_ITEM
 
);

 
$items['series/list/add'] = array(
   
'title' => 'Add new series',
   
'page callback' => 'drupal_get_form',
   
'page arguments' => array('series_form_add'),
   
'access callback' => true,
   
'type' => MENU_LOCAL_TASK,
   
'file' => 'series.forms.inc'
 
);
?>

But no matter what I do, I can't get the "Add new series" to show as a local task in the "Series list" page. I do, however, have two entries like these:

<?php
  $items
['series/%series'] = array(
   
'title' => 'Title placeholder',
   
'page callback' => 'series_page_view',
   
'page arguments' => array(1),
   
'access callback' => true,
   
'type' => MENU_NORMAL_ITEM
 
);

 
$items['series/%series/edit'] = array(
   
'title' => 'Edit series',
   
'page callback' => 'series_page_edit',
   
'page arguments' => array(1, 3, 5),
   
'access callback' => true,
   
'type' => MENU_LOCAL_TASK,
   
'file' => 'series.forms.inc'
 
);
?>

Where the local task works just perfectly. I can't for the heck of me figure out what the error is. I tried searching on the forum for terms like "local task not showing" and "local task problem" but couldn't find anything. But it's probably just me doing something very wrong.

Addition

Stmated - March 27, 2008 - 17:04

Oh, and forgot to tell that the entry does show up as a sub-menu if I change it into a MENU_NORMAL_ITEM instead of MENU_LOCAL_TASK -- so if it shows up with one, shouldn't it show up with the other? This is quite eerie to me.

Found an issue

Stmated - March 27, 2008 - 18:39

I suppose http://drupal.org/node/170309 is the issue at hand. Quite a serious one... I guess I can only build like normal and hope it's fixed later.

 
 

Drupal is a registered trademark of Dries Buytaert.