function _drush_make_generate_defaults

8.0.x generate.contents.make.inc _drush_make_generate_defaults($defaults, &$output = array())
7.x generate.contents.make.inc _drush_make_generate_defaults($defaults, &$output = array())
master generate.contents.make.inc _drush_make_generate_defaults($defaults, &$output = array())
1 call to _drush_make_generate_defaults()
_drush_make_generate_makefile_contents in commands/make/generate.contents.make.inc
Generate the actual contents of the .make file.

File

commands/make/generate.contents.make.inc, line 282
Functions for the generate makefile command.

Code

function _drush_make_generate_defaults($defaults, &$output = array()) {
  $output[] = '; Defaults';
  foreach ($defaults as $name => $project) {
    $type = 'defaults';
    if (!$project && is_string($name)) {
      $output[] = $type . '[] = "' . $name . '"';
      continue;
    }
    $base = $type . '[' . $name . ']';

    $output = array_merge($output, _drush_make_generate_lines($base, $project));
  }
}