Can I use dependencies[] = module name in the theme.info file? I want to create a drupal theme where I using some dependencies module, if I able to mention the dependencies in theme info it will easy to install the theme.
1 Answer
Nope, themes do not have such a directive in their info files.
Themes are supposed to be module independent. The "designed" way to do it is to move all module-dependent code to a custom module, and in relevant parts of your theme simply test for existence of data your custom module was supposed to provide.
-
3A feature request is already created at drupal.org/node/474684 (for Drupal 8). Apr 6, 2016 at 12:44