You are here

function filehash_names in File Hash 8

Same name and namespace in other branches
  1. 7 filehash.module \filehash_names()

Returns array of human-readable hash algorithm names.

6 calls to filehash_names()
FileHashConfigForm::buildForm in src/Form/FileHashConfigForm.php
Form constructor.
filehash_token_info in ./filehash.tokens.inc
Implements hook_token_info().
filehash_views_data in ./filehash.views.inc
Implements hook_views_data().
TableFormatter::settingsForm in src/Plugin/Field/FieldFormatter/TableFormatter.php
Returns a form to configure settings for the formatter.
TableFormatter::settingsSummary in src/Plugin/Field/FieldFormatter/TableFormatter.php
Returns a short summary for the current formatter settings.

... See full list

File

./filehash.module, line 161
Generate hashes for each uploaded file.

Code

function filehash_names() {
  return [
    'md5' => t('MD5'),
    'sha1' => t('SHA-1'),
    'sha256' => t('SHA-256'),
  ];
}