You are here

function filehash_file_insert in File Hash 8

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

Implements hook_ENTITY_TYPE_insert().

File

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

Code

function filehash_file_insert(EntityInterface $file) {
  filehash_save($file);
}