What is the difference between hook_theme and hook_theme_registry?



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

Post New Answer

More Drupal Interview Questions

When did drupal 8 release?

1 Answers  


What is module in drupal? List out some of the contributed modules used in drupal?

1 Answers  


List out the SEO modules available in Drupal?

1 Answers  


Explain the drupal 7 architecture.

1 Answers  


What is purpose or use of .htaccess file?

1 Answers  


What modules do you always recommend and why?

1 Answers  


What is database abstraction layer in drupal ?

1 Answers  


What is comment moderation in drupal?

1 Answers  


How will you add custom php codes in drupal pages or blocks?

1 Answers  


What are the technical differences between joomla and drupal?

1 Answers  


How to move a drupal site from one host/server to another?

1 Answers  


What does views do and how do you use it?

1 Answers  


Categories