Search for hook_file

  1. Search 9.5.x for hook_file
  2. Search 8.9.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 modules/system/system.api.php Register information about FileTransfer classes provided by a module.
hook_filetransfer_info_alter function modules/system/system.api.php Alter the FileTransfer class registry.
hook_file_copy function modules/system/system.api.php Respond to a file that has been copied.
hook_file_delete function modules/system/system.api.php Respond to a file being deleted.
hook_file_download function modules/system/system.api.php Control access to private file downloads and specify HTTP headers.
hook_file_download_access function modules/file/file.api.php Control download access to files.
hook_file_download_access_alter function modules/file/file.api.php Alter the access rules applied to a file download.
hook_file_insert function modules/system/system.api.php Respond to a file being added.
hook_file_load function modules/system/system.api.php Load additional information into file objects.
hook_file_mimetype_mapping_alter function modules/system/system.api.php Alter MIME type mappings used to determine MIME type from a file extension.
hook_file_move function modules/system/system.api.php Respond to a file that has been moved.
hook_file_presave function modules/system/system.api.php Act on a file being inserted or updated.
hook_file_update function modules/system/system.api.php Respond to a file being updated.
hook_file_url_alter function modules/system/system.api.php Alter the URL to a file.
hook_file_validate function modules/system/system.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.