function hacked_hacked_file_hashers_info in Hacked! 8.2
Same name and namespace in other branches
- 6.2 hacked.module \hacked_hacked_file_hashers_info()
- 7.2 hacked.module \hacked_hacked_file_hashers_info()
Implements hook_hacked_file_hashers_info().
File
- ./
hacked.module, line 162 - The Hacked! module, shows which project have been changed since download.
Code
function hacked_hacked_file_hashers_info() {
$hashers = [];
$hashers['hacked_ignore_line_endings'] = [
'class' => '\\Drupal\\hacked\\hackedFileIgnoreEndingsHasher',
'name' => t('Ignore line endings'),
'description' => t('When hashing files differences in line endings will be ignored. This might be useful if projects have been edited on a different platform than of the original author\'s. E.g. if a file has been opened and saved on Windows.'),
];
$hashers['hacked_include_line_endings'] = [
'class' => '\\Drupal\\hacked\\hackedFileIncludeEndingsHasher',
'name' => t('Include line endings'),
'description' => t('When hashing files differences in line endings will be included.'),
];
return $hashers;
}