hook_form
Display a node editing form.
This hook, implemented by node modules, is called to retrieve the form that is displayed when one attempts to "create/edit" an item. This form is displayed at the URI http://www.example.com/?q=node//nodetype.
В testhook_menu():
$items[] = array(
'path' => 'node/add/testhook',
'title' => t('testhook'),
'description' => t('testhook description'),
'access' => user_access('manage testhook content'),
);
В testhook_form() описана форма. Захожу в http://drupal/?q=node/add/testhook выводится та же страница, что и http://drupal/?q=node/add . Если в testhook_menu() написать:
$items[] = array(
'path' => 'node/add/testhook',
'title' => t('testhook'),
'description' => t('testhook description'),
'access' => user_access('manage testhook content'),
'callback' => 'drupal_get_form',
'callback arguments' => 'testhook_form',
);
то форма выводится. Почему не работает без callback?