Tuesday, 3 July 2012

Differences between hook_boot() and hook_init() in Drupal?

  1. hook_boot() is called before modules or most include files are loaded into memory (1.e., This hook will called while Drupal is still in bootstrap mode).
  2. hook_init()  is called After all modules are loaded into memory.

  1. hook_boot() is called event though the pages / Views got cached.
  2. hook_init() will not run on cached Pages.

No comments:

Post a Comment

Thank you so much for providing your valuable feedback. I will will look into them and update my skills & technologies accordingly.