Search for hook_file_

  1. Search 7.x for hook_file_
  2. Search 9.5.x for hook_file_
  3. Search 10.3.x for hook_file_
  4. Search 11.x for hook_file_
  5. Other projects
Title Object type File name Summary
hook_filetransfer_info function core/lib/Drupal/Core/File/file.api.php Register information about FileTransfer classes provided by a module.
hook_filetransfer_info_alter function core/lib/Drupal/Core/File/file.api.php Alter the FileTransfer class registry.
hook_file_copy function core/modules/file/file.api.php Respond to a file that has been copied.
hook_file_download function core/lib/Drupal/Core/File/file.api.php Control access to private file downloads and specify HTTP headers.
hook_file_mimetype_mapping_alter function core/lib/Drupal/Core/File/file.api.php Alter MIME type mappings used to determine MIME type from a file extension.
hook_file_move function core/modules/file/file.api.php Respond to a file that has been moved.
hook_file_url_alter function core/lib/Drupal/Core/File/file.api.php Alter the URL to a file.
hook_file_validate function core/modules/file/file.api.php Check that files meet a given criteria.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.