Problema con menu su due livelli

1 contenuto / 0 new
Problema con menu su due livelli

ciao a tutti,
volevo chiedervi un aiuto perchè sto impazzendo per ottenere menù su due livelli visibili non appena qualcuno clicka sul link del modulo.
Mi spiego meglio: ho il mio hook _menu, all' interno del quale ho dichiarato un MENU_NORMAL_ITEM, che mi crea il link nel blocco a sinistra, con indirizzo 'scheduler'(che è il nome del modulo); dopodichè ho un elemento dichiarato come MENU_DEFAULT_LOCAL_TASK con indirizzo 'scheduler/list', che contiene il riferimento alla callback che mi serve; infine ho al terzo livello tre elementi dichirati come MENU_DEFAULT_LOCAL_TASK e MENU_LOCAL_TASK con path 'scheduler/list/***periodo_di_tempo***'.
Ciò che vorrei è che quando clicko sul link del modulo nel blocco a sinistra, drupal visualizzi subito nella barra dei menù entrambi i livelli(list e ***periodo_di_tempo***) senza che io clicki necessariamente su list per farli comparire.

Il codice che ho usato è il seguente:
...

<?php
            $items
[] = array('path' => 'scheduler',
                   
'title' => t('Scheduler'),
                   
'callback' => 'scheduler_list',
                   
'access' => user_access('list scheduler'),
                   
'type' => MENU_NORMAL_ITEM);
               
$items[] = array('path' => 'scheduler/list',
                   
'title' => t('List'),
                   
'callback' => 'scheduler_list',
                   
//'callback arguments' => array('status' => array('Open', 'Owned', 'Unresolved')),
                   
'access' => user_access('list scheduler'),
                   
'type' => MENU_DEFAULT_LOCAL_TASK,
                   
'weight' => 0);
               
$items[] = array('path' => 'scheduler/list/month',
                   
'title' => t('Month'),
                   
'callback' => 'scheduler_list',
                   
//'callback arguments' => array('status' => array('Open', 'Owned', 'Unresolved')),
                   
'access' => user_access('list scheduler'),
                   
'type' => MENU_LOCAL_TASK,
                   
'weight' => 1);
               
$items[] = array('path' => 'scheduler/list/week',
                   
'title' => t('Week'),
                   
'callback' => 'scheduler_list',
                   
//'callback arguments' => array('status' => array('Open', 'Owned', 'Unresolved')),
                   
'access' => user_access('list scheduler'),
                   
'type' => MENU_LOCAL_TASK,
                   
'weight' => 2);
               
$items[] = array('path' => 'scheduler/list/day',
                   
'title' => t('Day'),
                   
'callback' => 'scheduler_list',
                   
//'callback arguments' => array('status' => array('Open', 'Owned', 'Unresolved')),
                   
'access' => user_access('list scheduler'),
                   
'type' => MENU_DEFAULT_LOCAL_TASK,
                   
'weight' => 3);
 
?>

...

spero che qualcuno mi possa aiutare ;P

Silent