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 modules declared as required dynamically.

1 call to _drush_drupal_required_modules()

File

commands/core/drupal/environment.inc, line 34
Specific functions for a drupal 7 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 ($module_info as $name => $module) {
    if (isset($module->info['required']) && $module->info['required']) {
      $required[] = $name;
    }
  }
  return array_unique($required);
}