You are here

function file_entity_test_entity_info_alter in File Entity (fieldable files) 7

Implements hook_entity_info_alter().

File

tests/file_entity_test.module, line 95
File Entity Test

Code

function file_entity_test_entity_info_alter(&$entity_info) {
  $entity_info['file']['view modes']['file_entity_test_preview'] = array(
    'label' => t('Test Preview'),
    'custom settings' => TRUE,
  );
}