function acquia_spi_is_manifest_type in Acquia Connector 7.3
Same name and namespace in other branches
- 6.2 acquia_spi/acquia_spi.module \acquia_spi_is_manifest_type()
- 6 acquia_spi/acquia_spi.module \acquia_spi_is_manifest_type()
- 7 acquia_spi/acquia_spi.module \acquia_spi_is_manifest_type()
- 7.2 acquia_spi/acquia_spi.module \acquia_spi_is_manifest_type()
Determine if a path is a file type we care about for modifications.
File
- acquia_spi/
acquia_spi.module, line 1689 - Send site profile information (NSPI) and system data to Acquia Insight.
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']]);
}