Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
file_build_uri includes/file.inc Constructs a URI to Drupal's default files location given a relative path. 4
file_copy includes/file.inc Copies a file to a new location and adds a file record to the database. 6
file_create_filename includes/file.inc Creates a full file path from a directory and filename. 3
file_create_htaccess includes/file.inc Creates a .htaccess file in the given directory. 2
file_create_url includes/file.inc Creates a web-accessible URL for a stream to an external or local file. 40
file_default_mimetype_mapping includes/file.mimetypes.inc Default MIME extension mapping. 1
file_default_scheme includes/file.inc Gets the default file stream implementation. 21 15
file_delete includes/file.inc Deletes a file and its database record. 10
file_destination includes/file.inc Determines the destination path for a file. 3
file_directory_temp includes/file.inc Gets the path of system-appropriate temporary directory. 7 2
file_download includes/file.inc Menu handler for private file transfers. 1 1
file_download_access includes/file.inc Checks that the current user has access to a particular file. 1
file_download_headers includes/file.inc Retrieves headers for a private file download. 3
file_element_info modules/file/file.module Implements hook_element_info().
file_ensure_htaccess includes/file.inc Creates a .htaccess file in each Drupal files directory if it is missing. 4
file_field_delete modules/file/file.field.inc Implements hook_field_delete(). 1
file_field_delete_file modules/file/file.field.inc Decrements the usage count for a file and attempts to delete it. 5
file_field_delete_revision modules/file/file.field.inc Implements hook_field_delete_revision(). 1
file_field_displayed modules/file/file.field.inc Determines whether a file should be displayed when outputting field content. 1
file_field_formatter_info modules/file/file.field.inc Implements hook_field_formatter_info().
file_field_formatter_view modules/file/file.field.inc Implements hook_field_formatter_view().
file_field_info modules/file/file.field.inc Implements hook_field_info().
file_field_insert modules/file/file.field.inc Implements hook_field_insert(). 1
file_field_instance_settings_form modules/file/file.field.inc Implements hook_field_instance_settings_form(). 1
file_field_is_empty modules/file/file.field.inc Implements hook_field_is_empty(). 1
file_field_load modules/file/file.field.inc Implements hook_field_load(). 1
file_field_prepare_view modules/file/file.field.inc Implements hook_field_prepare_view().
file_field_presave modules/file/file.field.inc Implements hook_field_presave(). 1
file_field_schema modules/file/file.install Implements hook_field_schema().
file_field_settings_form modules/file/file.field.inc Implements hook_field_settings_form().
file_field_update modules/file/file.field.inc Implements hook_field_update(). 1
file_field_widget_form modules/file/file.field.inc Implements hook_field_widget_form(). 1
file_field_widget_info modules/file/file.field.inc Implements hook_field_widget_info().
file_field_widget_process modules/file/file.field.inc An element #process callback for the file_generic field type. 1
file_field_widget_process_multiple modules/file/file.field.inc An element #process callback for a group of file_generic fields. 1
file_field_widget_settings_form modules/file/file.field.inc Implements hook_field_widget_settings_form(). 1
file_field_widget_submit modules/file/file.field.inc Form submission handler for upload/remove button of file_field_widget_form(). 1
file_field_widget_upload_validators modules/file/file.field.inc Retrieves the upload validators for a file field. 1
file_field_widget_uri modules/file/file.field.inc Determines the URI for a file field instance. 1
file_field_widget_value modules/file/file.field.inc The #value_callback for the file_generic field element. 1
file_file_delete modules/file/file.module Implements hook_file_delete().
file_file_download modules/file/file.module Implements hook_file_download(). 1
file_get_content_headers includes/file.inc Examines a file object and returns appropriate content headers for download. 1
file_get_file_references modules/file/file.module Retrieves a list of references to a file. 1
file_get_mimetype includes/file.inc Determines an Internet Media Type or MIME type from a filename. 7
file_get_stream_wrappers includes/file.inc Provides Drupal stream wrapper registry. 8 2
file_help modules/file/file.module Implements hook_help().
file_htaccess_lines includes/file.inc Returns the standard .htaccess lines that Drupal writes to file directories. 2
file_icon_map modules/file/file.module Determines the generic icon MIME package based on a file's MIME type. 1
file_icon_path modules/file/file.module Creates a path to the icon for a file object. 1

Other projects


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