How to add custom php codes in my drupal pages or blocks?



How to add custom php codes in my drupal pages or blocks?..

Answer / Chandan Singh

To add custom PHP code to Drupal, you can create a custom module and use hooks to alter the output of specific pages or blocks. Alternatively, you can use a PHP Coder block or the PHP filter.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Drupal Interview Questions

What is the use of Publishing options while creating blogs?

1 Answers  


How to find if the page is served from varnish cache?

1 Answers  


What is drupal cache ?

1 Answers  


How can we modify the form validation of drupal?

1 Answers  


What is a base theme in drupal?

1 Answers  


Is it possible to disable a core required modules through drupal admin?

1 Answers  


Explain what is Drupal?

1 Answers  


How can we add the new menu to drupal admin section?

1 Answers  


What is the use of Length of trimmed description field in Feed aggregator?

1 Answers  


What is drupal distribution?

1 Answers  


Why are so many drupal versions available - 4.x, 5.x ...? Which one should I use?

1 Answers  


Is it possible to disable the core required modules through drupal admin?

1 Answers  


Categories