You are here

function acsf_init_default_settings_php_create in Acquia Cloud Site Factory Connector 8

Re-creates the default settings.php file.

Parameters

string $default_settings_php_path: The path to the default settings.php file.

1 call to acsf_init_default_settings_php_create()
drush_acsf_init in acsf_init/acsf_init.drush.inc
Command callback: executes the required changes to this repository.

File

acsf_init/acsf_init.drush.inc, line 285
Provides drush commands to set up a site for Acquia Site Factory.

Code

function acsf_init_default_settings_php_create($default_settings_php_path) {
  $result = file_put_contents($default_settings_php_path, "<?php\n\n" . acsf_init_default_settings_php_include_get() . "\n");
  if ($result) {
    drush_log(dt('File create success: sites/default/settings.php'), 'success');
  }
  else {
    drush_log(dt('File create error: sites/default/settings.php'), 'error');
  }
}