function _drush_drupal_required_modules

8.0.x environment_7.inc _drush_drupal_required_modules($module_info)
8.0.x environment_6.inc _drush_drupal_required_modules($module_info)
8.0.x environment.inc _drush_drupal_required_modules($module_info)
6.x environment_6.inc _drush_drupal_required_modules($module_info)
6.x environment.inc _drush_drupal_required_modules($module_info)
6.x environment_7.inc _drush_drupal_required_modules($module_info)
7.x environment_7.inc _drush_drupal_required_modules($module_info)
7.x environment_6.inc _drush_drupal_required_modules($module_info)
7.x environment.inc _drush_drupal_required_modules($module_info)
4.x environment_6.inc _drush_drupal_required_modules($module_info)
4.x environment_5.inc _drush_drupal_required_modules($module_info)
4.x environment.inc _drush_drupal_required_modules($module_info)
5.x environment_6.inc _drush_drupal_required_modules($module_info)
5.x environment.inc _drush_drupal_required_modules($module_info)
master environment_7.inc _drush_drupal_required_modules($module_info)
master environment.inc _drush_drupal_required_modules($module_info)

Returns drupal required modules, including their dependencies.

A module may alter other module's .info to set a dependency on it. See for example http://drupal.org/project/phpass

1 call to _drush_drupal_required_modules()

File

commands/core/drupal/environment_6.inc, line 35
Specific functions for a drupal 6 environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal drush is called from.

Code

function _drush_drupal_required_modules($module_info) {
  $required = drupal_required_modules();
  foreach ($required as $module) {
    $required = array_merge($required, $module_info[$module]->info['dependencies']);
  }
  return $required;
}