задача такая :
Необходимо чтобы по урлу http://example.com/user_gallery (/1) выводился мой код
<?php
function hook_menu($may_cache)
{
global $user;
$items = array();
if ($may_cache)
{
$items[] = array(
'path' => 'user_gallery',
'title' => t('Users Gallery'),
'callback' => 'user_gallery',
'access' => user_access('access content'),
'type' => MENU_SUGGESTED_ITEM);
$items[] = array(
'path' => 'user_gallery'. $user->uid, 'title' => t('My Gallery'),
'access' => user_access('edin own gellery'),
'type' => MENU_SUGGESTED_ITEM);
}
return $items;
}
function user_gallery()
{
echo "1";
}
Это для начала но блин при вводу урла http://example.com/user_gallery пишет что страица не найдена