function _drush_make_generate_makefile_contents

8.0.x generate.contents.make.inc _drush_make_generate_makefile_contents($projects, $libraries = array(), $core_version = NULL, $defaults = array())
6.x generate.make.inc _drush_make_generate_makefile_contents($projects, $libraries = array())
7.x generate.contents.make.inc _drush_make_generate_makefile_contents($projects, $libraries = array(), $core_version = NULL, $defaults = array())
5.x generate.make.inc _drush_make_generate_makefile_contents($projects, $libraries = array())
master generate.contents.make.inc _drush_make_generate_makefile_contents($projects, $libraries = array(), $core_version = NULL, $defaults = array())

Generate the actual contents of the .make file.

1 call to _drush_make_generate_makefile_contents()
drush_make_generate in commands/make/generate.make.inc
Drush callback; generate makefile from the current build.

File

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

Code

function _drush_make_generate_makefile_contents($projects, $libraries = array()) {
  $header = array();
  $header[] = '; This file was auto-generated by drush make';
  $header['core'] = DRUPAL_CORE_COMPATIBILITY;
  $header[] = '';
  $header['api'] = MAKE_API;

  return _drush_make_generate_makefile_body($projects, $header) . _drush_make_generate_makefile_body($libraries);
}