Articles


Difference between hook_boot and hook_init Drupal

Difference between hook_boot and hook_init Drupal



Posted byJibin Jose,30th Jul 2016

hook_boot()hook_init()
hook_boot() will executes even on cached pageshook_init() will not executes on cached pages
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).hook_init(),is called After all modules are loaded into memory.
It happens while Drupal is still in bootstrap mode.It happens after bootstrap mode.
Categories