You are here

function filehash_field_formatter_info in File Hash 7

Implements hook_field_formatter_info().

File

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

Code

function filehash_field_formatter_info() {
  $algos = filehash_algos();
  return array(
    'filehash_table' => array(
      'label' => t('Table of files with file hashes'),
      'field types' => array(
        'file',
        'image',
        'media',
      ),
      'settings' => array(
        'algo' => array_pop($algos),
      ),
    ),
  );
}