Search for all

  1. Search 9.5.x for all
  2. Search 8.9.x for all
  3. Search 10.3.x for all
  4. Search 11.x for all
  5. Other projects
Title Object type File name Summary
file_destination function includes/file.inc Determines the destination path for a file.
file_directory_temp function includes/file.inc Gets the path of system-appropriate temporary directory.
file_download function includes/file.inc Menu handler for private file transfers.
file_download_access function includes/file.inc Checks that the current user has access to a particular file.
file_download_headers function includes/file.inc Retrieves headers for a private file download.
file_element_info function modules/file/file.module Implements hook_element_info().
file_ensure_htaccess function includes/file.inc Creates a .htaccess file in each Drupal files directory if it is missing.
FILE_EXECUTABLE constant includes/install.inc File permission check -- File is executable.
FILE_EXIST constant includes/install.inc File permission check -- File exists.
FILE_EXISTS_ERROR constant includes/file.inc Flag for dealing with existing files: Do nothing and return FALSE.
FILE_EXISTS_RENAME constant includes/file.inc Flag for dealing with existing files: Appends number until name is unique.
FILE_EXISTS_REPLACE constant includes/file.inc Flag for dealing with existing files: Replace the existing file.
file_field_delete function modules/file/file.field.inc Implements hook_field_delete().
file_field_delete_file function modules/file/file.field.inc Decrements the usage count for a file and attempts to delete it.
file_field_delete_revision function modules/file/file.field.inc Implements hook_field_delete_revision().
file_field_displayed function modules/file/file.field.inc Determines whether a file should be displayed when outputting field content.
file_field_formatter_info function modules/file/file.field.inc Implements hook_field_formatter_info().
file_field_formatter_view function modules/file/file.field.inc Implements hook_field_formatter_view().
file_field_info function modules/file/file.field.inc Implements hook_field_info().
file_field_insert function modules/file/file.field.inc Implements hook_field_insert().
file_field_instance_settings_form function modules/file/file.field.inc Implements hook_field_instance_settings_form().
file_field_is_empty function modules/file/file.field.inc Implements hook_field_is_empty().
file_field_load function modules/file/file.field.inc Implements hook_field_load().
file_field_prepare_view function modules/file/file.field.inc Implements hook_field_prepare_view().
file_field_presave function modules/file/file.field.inc Implements hook_field_presave().
file_field_schema function modules/file/file.install Implements hook_field_schema().
file_field_settings_form function modules/file/file.field.inc Implements hook_field_settings_form().
file_field_update function modules/file/file.field.inc Implements hook_field_update().
file_field_widget_form function modules/file/file.field.inc Implements hook_field_widget_form().
file_field_widget_info function modules/file/file.field.inc Implements hook_field_widget_info().
file_field_widget_process function modules/file/file.field.inc An element #process callback for the file_generic field type.
file_field_widget_process_multiple function modules/file/file.field.inc An element #process callback for a group of file_generic fields.
file_field_widget_settings_form function modules/file/file.field.inc Implements hook_field_widget_settings_form().
file_field_widget_submit function modules/file/file.field.inc Form submission handler for upload/remove button of file_field_widget_form().
file_field_widget_upload_validators function modules/file/file.field.inc Retrieves the upload validators for a file field.
file_field_widget_uri function modules/file/file.field.inc Determines the URI for a file field instance.
file_field_widget_value function modules/file/file.field.inc The #value_callback for the file_generic field element.
file_file_delete function modules/file/file.module Implements hook_file_delete().
file_file_download function modules/file/file.module Implements hook_file_download().
file_get_content_headers function includes/file.inc Examines a file object and returns appropriate content headers for download.
file_get_file_references function modules/file/file.module Retrieves a list of references to a file.
file_get_mimetype function includes/file.inc Determines an Internet Media Type or MIME type from a filename.
file_get_stream_wrappers function includes/file.inc Provides Drupal stream wrapper registry.
file_help function modules/file/file.module Implements hook_help().
file_htaccess_lines function includes/file.inc Returns the standard .htaccess lines that Drupal writes to file directories.
file_icon_map function modules/file/file.module Determines the generic icon MIME package based on a file's MIME type.
file_icon_path function modules/file/file.module Creates a path to the icon for a file object.
file_icon_url function modules/file/file.module Creates a URL to the icon for a file object.
FILE_INSECURE_EXTENSIONS constant includes/file.inc A pipe-separated list of insecure extensions.
file_load function includes/file.inc Loads a single file object from the database.

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