What is the difference between hook_theme and hook_theme_registry?
Answer / 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 |
When did drupal 8 release?
What is module in drupal? List out some of the contributed modules used in drupal?
List out the SEO modules available in Drupal?
Explain the drupal 7 architecture.
What is purpose or use of .htaccess file?
What modules do you always recommend and why?
What is database abstraction layer in drupal ?
What is comment moderation in drupal?
How will you add custom php codes in drupal pages or blocks?
What are the technical differences between joomla and drupal?
How to move a drupal site from one host/server to another?
What does views do and how do you use it?