You are here

function filehash_algos in File Hash 7

Same name and namespace in other branches
  1. 8 filehash.module \filehash_algos()

Returns array of enabled hash algorithms.

10 calls to filehash_algos()
filehash_bulk_submit in ./filehash.admin.inc
Submit callback for File Hash bulk generate.
filehash_field_formatter_info in ./filehash.module
Implements hook_field_formatter_info().
filehash_field_formatter_settings_form in ./filehash.module
Implements hook_field_formatter_settings_form().
filehash_file_load in ./filehash.module
Implements hook_file_load().
filehash_file_validate in ./filehash.module
Implements hook_file_validate().

... See full list

2 string references to 'filehash_algos'
filehash_settings in ./filehash.admin.inc
Builds the File Hash settings form.
filehash_uninstall in ./filehash.install
Implements hook_uninstall().

File

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

Code

function filehash_algos() {
  return array_diff(variable_get('filehash_algos', array()), array(
    0,
  ));
}