What is the use of module_invoke and module_invoke_all?
Answer Posted / Preetam Banarji
module_invoke() and module_invoke_all() are functions in Drupal that allow you to call hooks within modules.
- module_invoke('<hook_name>', '<module_name>') calls a specific hook within a specified module.
- module_invoke_all('<hook_name>') calls all the hooks associated with the given hook name across all enabled modules.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers