How to make a module prerequisite in drupal
using below format in .info file of the module.

dependencies[] = D1
dependencies[] = D2


I the above lines, D1 &amp; D2 represent the names of the modules you module depend on.