What is the difference between hook_theme and hook_theme_registry?
Answer Posted / Shubham Kaushik
hook_theme() and hook_theme_registry_alter() are hooks provided by Drupal to manage themes. hook_theme() defines custom theme functions that can be used to alter the output of existing HTML templates in your theme. The returned array from hook_theme() is cached as a part of the theme registry. hook_theme_registry_alter() allows developers to modify the theme registry programmatically, for example, to add, remove, or alter theme functions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers