Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
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
file_icon_url modules/file/file.module Creates a URL to the icon for a file object. 1
file_load includes/file.inc Loads a single file object from the database. 42
file_load_multiple includes/file.inc Loads file objects from the database. 15
file_managed_file_pre_render modules/file/file.module #pre_render callback to hide display of the upload or remove controls. 1
file_managed_file_process modules/file/file.module Process function to expand the managed_file element type. 1
file_managed_file_save_upload modules/file/file.module Saves any files that have been uploaded into a managed_file element. 1
file_managed_file_submit modules/file/file.module Form submission handler for upload / remove buttons of managed_file elements. 1
file_managed_file_validate modules/file/file.module An #element_validate callback for the managed_file element. 1
file_managed_file_value modules/file/file.module The #value_callback for a managed_file type element. 1 1
file_menu modules/file/file.module Implements hook_menu().
file_mimetype_mapping includes/file.mimetypes.inc Return an array of MIME extension mappings. 1
file_module_test_file_download modules/file/tests/file_module_test.module Implements hook_file_download().
file_module_test_form modules/file/tests/file_module_test.module Form constructor for testing a 'managed_file' element. 1
file_module_test_form_submit modules/file/tests/file_module_test.module Form submission handler for file_module_test_form().

Other projects


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