You are here

function has_theme_files in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 acsf_init/lib/cloud_hooks/common/pre-web-activate/000-acquia-deployment.php \has_theme_files()

Indicates whether theme files have been deployed.

Parameters

string $site: The sitegroup name.

string $env: The environment name.

Return value

bool TRUE if this webnode has theme files; FALSE otherwise.

1 call to has_theme_files()
main in acsf_init/lib/cloud_hooks/common/pre-web-activate/000-acquia-deployment.php
The entry point into the script.

File

acsf_init/lib/cloud_hooks/common/pre-web-activate/000-acquia-deployment.php, line 140
This script is responsible for deploying theme files on each webnode.

Code

function has_theme_files($site, $env) {
  $result = FALSE;
  $path = get_theme_directory($site, $env);
  if (file_exists($path) && is_dir($path)) {
    $result = TRUE;
  }
  return $result;
}