How to use preprocess function?
Answer / Mukesh Kumar Tewari
Preprocess functions are implemented in template files and are called before the theme's templates are rendered. They allow you to alter variables before they are passed to the template file, making it possible to customize your theme. Example: hook_preprocess_HOOK(&$variables) in custom module.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain module in drupal ?
How to create drush command for your custom module?
What is a block module?
What is module and list out some of the modules used in drupal?
What modules do you always recommend and why?
How do I view views in drupal 8?
How do I move a drupal site from one host/server to another?
Any modules contributed to drupal community?
Why are so many drupal versions available - 4.x, 5.x .7.x.? Which one should I use?
Compare joomla and drupal terminology?
What is the use of taxonomy and vocabulary in drupal?
How will you create custom module and what are the files required for to create module?