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 |
Add custom table to views drupal 7?
How do I set up drupal?
What is the use of views in drupal 8?
Why does drupal need a database? What databases are supported?
Where is drush?
Why Drupal is considered powerful CMS compare to other CMS system?
What is a web content management system?
How to configure .htaccess to ignore specific subfolders?
How can I install drupal on a local wamp server?
what is drupal_http_request?
What are nodes in drupal?
How do I add taxonomy in drupal 8?