function acquia_spi_file_hashes in Acquia Connector 6
Same name and namespace in other branches
- 6.2 acquia_spi/acquia_spi.module \acquia_spi_file_hashes()
- 7 acquia_spi/acquia_spi.module \acquia_spi_file_hashes()
- 7.2 acquia_spi/acquia_spi.module \acquia_spi_file_hashes()
Gather hashes of all important files, ignoring line ending and CVS Ids
Parameters
$excuded_dirs: Optional array of directory paths to be excluded.
Return value
An associative array keyed by filename of hashes.
1 call to acquia_spi_file_hashes()
- acquia_spi_get in acquia_spi/
acquia_spi.module - Gather site profile information about this site.
File
- acquia_spi/
acquia_spi.module, line 182 - Send site profile information (SPI) and system data to Acquia Network.
Code
function acquia_spi_file_hashes($exclude_dirs = array()) {
// The list of directories for the third parameter are the only ones that
// will be recursed into. Thus, we avoid sending hashes for any others.
list($hashes, $fileinfo) = _acquia_spi_generate_hashes('.', $exclude_dirs, array(
'modules',
'profiles',
'themes',
'includes',
'misc',
'scripts',
));
ksort($hashes);
return array(
$hashes,
$fileinfo,
);
}