First off this maybe a really bad way to develop a webpage in Drupal, but I am tasked with upgrading these old modules.
As I am still new to Drupal I am looking for some help in understanding how Drupal is working so I can re-program these old modules.
1. The site has a reservation page.
2. This loads the reservation module or Drupal knows to run the module based off the hook system.
It works in 4.7 but doesn't work in 6
Questions:
1. How do Drupal know that a Module should run instead of displaying the page? Is it looking for a module with the same name as the page??
2. Are modules looking for a function name related to the name of the module and running that function when the module is called?
Any help will be greatly appreciated.
Thanks,
Chris
Comments
I think the answer you are
I think the answer you are looking for starts with hook_menu(). With hook_menu you can associate a path with a callback function, the callback function then generally returns html as a string which is displayed as the content portion of a page. Following best practices, the callback gather/organizes data and uses a theme function (or template file) to generate html.
The Coder module can provide assistance both in upgrading from 4.7 to 5.x and also 5.x to 6.x. The Deadwood module can also automate to some degree upgrading from 5.x to 6.x