| hook_boot() | hook_init() |
|---|---|
| hook_boot() will executes even on cached pages | hook_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. |
Monday, January 21, 2019
Difference between hook_boot and hook_init Drupal
Subscribe to:
Posts (Atom)
Difference between hook_boot and hook_init Drupal
hook_boot() hook_init() hook_boot() will executes even on cached pages hook_init() will not executes on cached pages hook_boot() is ...
-
Hello Developers, Laravel 5 Implemented routes as sepeately, previously we have in app/Http/routes.php in Laravel 4. In Laravel 5 maint...
-
A CSRF token will handle this issue for you. If you have a check on the form, the token will stop the user from submitting twice without r...