0
votes

I wanted to install few modules when my module is installed. How this can be achieved. I am creating a module which requires few other modules to be installed. I want to install them when my main module is installed.

I have placed all those module folders inside one main folder and I wanted to created a install file to install those modules when this main install file is executed. Kindly provide me an solution to do this.

Thanks in advance.

1

1 Answers

0
votes

You can simply use dependencies in your module .info file which force the user to enable the other modules first

E.g

name = "Your module Name"
description = "Your module Description"
core = 7.x
dependencies[] = views
dependencies[] = panels

in this example you will force the user to enable views and panels modules first