Site maintainer (chx) comment: This is a duplicate post. Please continue discussion at the other post.
Posted this over in "How do I.." forum, not sure if there or this is the appropriate place, but will do this just to make sure I'm in the right place
Been studying and learning the Drupal internal codes so that I can contribute to Drupal eventually.
To be able to contribute sooner, I'm hoping that the Drupal experts who knows the internal very well can give me hints and pointers on how the internal works thus allowing me to understand and learn quicker.
I have been trying to follow the code starting with index.php and I see that first the bootstrap.php is loaded and the configuration file is included. After that, "drupal_page_header()" is called, and if caching is set, Drupal will serve the cached version of the page and set the HTTP header. (right so far?)
If cache are not enabled/available, then Drupal proceeds to set the header to current date and time and then include common.php which includes several files, set the Content type in the header, build its path and then loads all module with "hook_init" and then a "hook_exit" (right so far?)
The thing is, when I look into the module codes, I dont see the corresponding function for "hook_init" or "hook_exit"? Am I missing something here?
The modules I checked out for the init and exit hook calls are the following...