function filehash_algos in File Hash 8
Same name and namespace in other branches
- 7 filehash.module \filehash_algos()
Returns array of enabled hash algorithms.
9 calls to filehash_algos()
- filehash_file_load in ./
filehash.module - Implements hook_ENTITY_TYPE_load().
- filehash_hash in ./
filehash.module - Calculates the file hashes.
- filehash_node_build_defaults_alter in ./
filehash.module - Implements hook_ENTITY_TYPE_build_defaults_alter().
- filehash_tokens in ./
filehash.tokens.inc - Implements hook_tokens().
- filehash_token_info in ./
filehash.tokens.inc - Implements hook_token_info().
File
- ./
filehash.module, line 32 - Generate hashes for each uploaded file.
Code
function filehash_algos() {
return array_diff(\Drupal::config('filehash.settings')
->get('algos'), [
0,
]);
}