Jason Flatt ha scritto:
On Tuesday 21 February 2006 07:45 am, michel ziobudda morelli wrote:
Jason Flatt ha scritto:
See if 'path' => 'zbnews', works. OPs. No. It does not work. And now ?
Sorry, I don't have any other ideas.
Resolved: function zbnews_menu($may_cache) { $items = array(); if ($may_cache) { $items[] = array('path' => 'node/add/zbnews', 'title' => t('Aggiungi una notizia'), 'access' => user_access('create zbnews')); } $items[] = array( 'path' => 'zbnews/goto', 'title' => t('Page redirect'), 'callback' => 'zbnews_goto', 'type' => MENU_CALLBACK, 'callback arguments' => $node , 'access' => user_access('create zbnews')); return $items; } But now, I have another problem: into my zbnews_goto function I want to set a new item of $node array so that in page.tpl.php I can manage it. Tnx. -- Michel 'ZioBudda' Morelli michel@ziobudda.net http://www.ziobudda.net ICQ: 58351764 http://www.phpbook.it FAX: 0291390660 TEL: 3939890025