Drupal Interview Questions – Set 04

How will you add custom PHP codes in Drupal pages or blocks?

Be default, Drupal doesn’t allow the insertion of PHP codes in its pages. To embed PHP codes, you need to activate a Drupal module called PHP filter. By default, this module remains disabled.

How can you drop a table using module in Drupal?

To drop a table you can use db_drop_table in install file.