17 Sep
2008
17 Sep
'08
1:39 p.m.
Hi All! i am converting a drupal 5 module to drupal 6 module. i know 'hook_menu' is different here in drupal6 my menu item for drupal5 if(arg(0) == 'published' || arg(0) == 'upcoming' || arg(0) == 'archived'){ $items[] = array( 'path' => arg(0), 'title' => t('View'), 'callback' => 'node_list', 'callback arguments' => array(arg(0)), 'access' => TRUE, 'type' => MENU_CALLBACK_ITEM); } i have changed this to if (arg(0) == 'published' || arg(0) == 'upcoming' || arg(0) == 'archived') { $items['%'] = array( 'title' => t('View'), 'page callback' => 'node_list', 'page arguments' => array(0), 'access callback' => TRUE, 'type' => MENU_CALLBACK_ITEM, ); } please tell where i am doing wrong ?? Thanks