function acsf_init_default_settings_php_include_get in Acquia Cloud Site Factory Connector 8
Returns the code to be added to the default settings.php file.
3 calls to acsf_init_default_settings_php_include_get()
- acsf_init_default_settings_php_create in acsf_init/
acsf_init.drush.inc - Re-creates the default settings.php file.
- acsf_init_default_settings_php_update in acsf_init/
acsf_init.drush.inc - Updates the default settings.php with the ACSF specific script include.
- drush_acsf_init_verify in acsf_init/
acsf_init.drush.inc - Command callback: Verify that acsf-init was run against the current version.
File
- acsf_init/
acsf_init.drush.inc, line 333 - Provides drush commands to set up a site for Acquia Site Factory.
Code
function acsf_init_default_settings_php_include_get() {
// Heredoc does not handle constants.
$delimiter_start = ACSF_INIT_CODE_DELIMITER_START;
$delimiter_end = ACSF_INIT_CODE_DELIMITER_END;
return <<<INCLUDE
{<span class="php-variable">$delimiter_start</span>}
\$_acsf_infrastructure = include dirname(__FILE__) . '/acsf.settings.php';
if (\$_acsf_infrastructure === 'acsf-infrastructure') {
return;
}
{<span class="php-variable">$delimiter_end</span>}
INCLUDE;
}