What is the difference between hook_init, hook_boot, hook_exit?
Answer Posted / Vipul Pratap Singh
hook_init() is a Drupal hook that runs at the beginning of each page request after all modules have been loaded but before the database connection is established. hook_boot() is a Drupal hook called during the bootstrap process when the system is being initialized, before the database connection is established.nhook_exit(), on the other hand, is not a Drupal core hook, but it's used to customize Drupal's exit behavior. It runs just before Drupal shuts down.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers