I'm upgrading a module I wrote from 4.4 to 4.5 and when I go to the
main page for the module I get "page not found." I've puzzled till my
puzzler is sore. It works fine in 4.4.x and I've made all the changes
in the Drupal conversion page in the handbook. Idears?
It sounds like you need to verify that you have a proper hook_menu()
implementation for your module. Without a modulename_menu() function,
Drupal has no way of knowing that the module's main page exists.
This is what I've got in astore_menu (astore being my module)
$items[] = array(
'path' => 'astore',
'title' => t("reviews"),
'callback' => 'astore_page_main',
'access' => user_access('access content'),
'type' => MENU_CALLBACK // though it doesn't seem to matter
what I set this to, even nothing at all
);
The callback doesn't have any requirements. If the callback function
wasn't working, it'd throw an error rather than a 404, no? I've looked
at both of the pages you indicated already, it's how I've gotten this
far. :)
Thanks,
Lynn
------
Lynn Siprelle * web developer, writer, mama, fiber junky
http://www.siprelle.com * http://www.thenewhomemaker.com
http://www.democracyfororegon.com * http://www.wisforwomen.com
http://www.knitting911.net * http://www.tomformayor.org
--
[ Drupal support list | http://list.drupal.org/ ]
|