You are here

function acquia_spi_is_manifest_type in Acquia Connector 6

Same name and namespace in other branches
  1. 6.2 acquia_spi/acquia_spi.module \acquia_spi_is_manifest_type()
  2. 7.3 acquia_spi/acquia_spi.module \acquia_spi_is_manifest_type()
  3. 7 acquia_spi/acquia_spi.module \acquia_spi_is_manifest_type()
  4. 7.2 acquia_spi/acquia_spi.module \acquia_spi_is_manifest_type()

Determine if a path is a file type we care about for modificaitons.

1 call to acquia_spi_is_manifest_type()
_acquia_spi_generate_hashes in acquia_spi/acquia_spi.module
Recursive helper function for acquia_spi_file_hashes().

File

acquia_spi/acquia_spi.module, line 226
Send site profile information (SPI) and system data to Acquia Network.

Code

function acquia_spi_is_manifest_type($path) {
  $extensions = array(
    'php' => 1,
    'php4' => 1,
    'php5' => 1,
    'module' => 1,
    'inc' => 1,
    'install' => 1,
    'test' => 1,
    'theme' => 1,
    'engine' => 1,
    'profile' => 1,
    'css' => 1,
    'js' => 1,
    'info' => 1,
    'sh' => 1,
    // SSL certificates
    'pem' => 1,
    'pl' => 1,
    'pm' => 1,
  );
  $pathinfo = pathinfo($path);
  return isset($pathinfo['extension']) && isset($extensions[$pathinfo['extension']]);
}