$items[] = array( 'path' => 'blogclient', 'title' => t('blog client'), 'access' => user_access('access blogclient'), 'callback' => 'blogclient_list', 'callback arguments' => array($user->uid), 'type' => MENU_CALLBACK, ); $items[] = array( 'path' => 'blogclient/list', 'type' => MENU_DEFAULT_LOCAL_TASK, 'title' => t('list'), 'access' => TRUE, 'weight' => -10, ); $items[] = array( 'path' => 'blogclient/edit', 'title' => arg(2) ? t('edit') : t('add'), 'callback' => 'blogclient_edit', 'access' => user_access('access blogclient'), 'type' => MENU_LOCAL_TASK, );