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 |
Which module used to validate drupal code?
what is drupal_http_request?
How to create a responsive theme in drupal?
What is module in drupal?
Whether drupal is written in procedural-style or object oriented?
What is Drupal main menu?
Explain the seo modules available in drupal?
What are cms platforms?
Explain user, permission, role in drupal?
Which design pattern used in drupal?
What is the use of the field set the width of each sidebar in the layout and general settings?
What are the steps for launching a drupal site?