I'm trying to write my own module and I have problem because I can't create more than two path for this module
function koszyk_menu($may_cache) {
if ($may_cache) {
$items = array();
$items[] = array('path' => 'koszyk',
'title' => t('Zawartosc koszyka'),
'callback' => 'koszyk',
'access' => user_access('kupowanie'),
'type' => MENU_CALLBACK);
$items[] = array('path' => 'koszyk/dodaj',
'title' => t('Dodaj do koszyka'),
'callback' => 'koszyk_dodaj',
'access' => user_access('kupowanie'),
'type' => MENU_CALLBACK);
$items[] = array('path' => 'zamowienie',
'title' => t('Adres dostawy'),
'callback' => 'koszyk_zamowienie',
'access' => user_access('kupowanie'),
'type' => MENU_CALLBACK);
$items[] = array('path' => 'zamowienie/koniec',
'title' => t('Adres dostawy'),
'callback' => 'koszyk_zamowienie_koniec',
'access' => user_access('kupowanie'),
'type' => MENU_CALLBACK);
}
return $items;
}
function koszyk_zamowienie() {
$output = "1234";
print theme('page', $output);