How to add custom php codes in pages using drupal?
Answer / Vijay Gautam
To add custom PHP code in pages using Drupal, you can create a custom module and implement hook_page_build() or hook_theme() in the .module file. Then, you can return your PHP code as a renderable array.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain how caching work in Drupal?
What are drupal distributions and drupal installation profiles
Explain what is drupal cron?
List some features of drupal?
List the system requirements for drupal installation?
What are the files required for theme and module?
Why is drupal used?
What is drupal distribution?
What is module in drupal? List out some of the contributed modules used in drupal?
How to debug code in drupal?
What is Anonymous user?
Which are the core optional modules in drupal?