You are here

function file_entity_hook_info in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 8.2 file_entity.module \file_entity_hook_info()
  2. 7.3 file_entity.module \file_entity_hook_info()

Implements hook_hook_info().

File

./file_entity.module, line 39
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_hook_info() {
  $hooks = array(
    'file_operations',
    'file_type_info',
    'file_type_info_alter',
    'file_formatter_info',
    'file_formatter_info_alter',
    'file_view',
    'file_view_alter',
    'file_displays_alter',
    'file_type',
    'file_type_alter',
    'file_download_headers_alter',
    'file_entity_access',
  );
  return array_fill_keys($hooks, array(
    'group' => 'file',
  ));
}