By sukh.singh on
I have been looking through the Drupal code and have been trying to understand how it ticks. I understand the way that the hooks works, but do not understand where the base definitions are kept. I have been going through each of the files in my Drupal installation and do not see a definition of each of the hooks, except for init and exit. Where is this kept? How is it restricting which hooks are implementable?
Comments
http://api.drupal.org/api/gro
http://api.drupal.org/api/group/hooks/5
Thanks for your Help but still have some issues
I knew the link for the hook api but what i want is in drupal where these hooks are defined so that i can know what these are doing rather then checking it online.
I think you are looking for
I think you are looking for this.
Check the common/module.inc for more details.
Different core hooks are
http://api.drupal.org/api/group/hooks/5
Hope this will help
Cheers.
Thanks for your Help but still have some issues
The things u told me are good but what i want is to see where these hook are declared in drupal that is what i want.
Did you mean this <?php/** *
Did you mean this
These are declared in the modulename.module file of each modules.
For reference check user, comment and node (core) modules.
Hope this will help
Cheers.
http://api.drupal.org/api/gro
http://api.drupal.org/api/group/hooks/5 -> You see the list of different hooks and the column "Location" tells the file where that hook is declared.