By yevgeny.ananin on
Hi. I have successfully used hook_menu to create a primary and a secondary task on a page. However, I don't know how to create extra levels beyond the two. A book that I have says: "Additional levels are supported by the underlying system, but your theme would have to provide support for displaying these additional levels". Unfortunately it doesn't provide any further information. Could anybody point me in the right direction?
My code looks like:
function faq_tab_menu(){
$items['assessor/faq-admin'] = array(
'title' => 'Assessor FAQ Admin Page',
'access callback' => TRUE,
'page callback' => 'faq_tab_render',
'type' => MENU_NORMAL_ITEM,
);
$items['assessor/faq-admin/list'] = array(
'title' => 'Current Order of FAQ items',
'access callback' => TRUE,
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['assessor/faq-admin/add'] = array(
'title' => 'Add FAQ item',
'access callback' => TRUE,
'page callback' => 'faq_tab_new_faq',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
/*
$items['assessor/faq-admin/delete'] = array(
'title' => 'Delete FAQ items',
'access callback' => TRUE,
'page callback' => 'faq_tab_delete_faq',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
*/