Drupal 7 example module, page not found, why?

后端 未结 3 656
甜味超标
甜味超标 2021-01-26 18:09

I wrote a simple test module example, 2 files, test.module, test.info, and enabled them in drupal 7 modules.

I cleared all the cache, and still when i\'m trying to go to

3条回答
  •  情书的邮戳
    2021-01-26 18:57

    You should probably change 'callback' to 'page callback', as I don't believe hook_menu() has just a plain "callback" option. And since you're working with Drupal 7, its hook_menu() actually doesn't have parameters.

提交回复
热议问题