Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
file_module_test_menu modules/file/tests/file_module_test.module Implements hook_menu().
file_move includes/file.inc Moves a file to a new location and update the file's database entry. 10
file_munge_filename includes/file.inc Modifies a filename as needed for security purposes. 7
file_prepare_directory includes/file.inc Checks that the directory exists and is writable. 25
file_progress_implementation modules/file/file.module Determines the preferred upload progress implementation. 4
file_register_phar_wrapper includes/file.phar.inc Registers a phar stream wrapper that is more secure than PHP's built-in one. 1
file_requirements modules/file/file.install Implements hook_requirements().
file_save includes/file.inc Saves a file object to the database. 13
file_save_data includes/file.inc Saves a file to the specified destination and creates a database entry. 9
file_save_upload includes/file.inc Saves a file upload to a new location. 7
file_scan_directory includes/file.inc Finds all files that match a given mask in a given directory. 27 1
file_space_used includes/file.inc Determines total disk space used by a single user or the whole filesystem. 2
file_stream_wrapper_get_class includes/file.inc Returns the stream wrapper class name for a given scheme. 6
file_stream_wrapper_get_instance_by_scheme includes/file.inc Returns a reference to the stream wrapper class responsible for a scheme. 4
file_stream_wrapper_get_instance_by_uri includes/file.inc Returns a reference to the stream wrapper class responsible for a given URI. 5
file_stream_wrapper_uri_normalize includes/file.inc Normalizes a URI by making it syntactically correct. 6
file_stream_wrapper_valid_scheme includes/file.inc Checks that the scheme of a stream URI is valid. 16
file_test_file_copy modules/simpletest/tests/file_test.module Implements hook_file_copy().
file_test_file_delete modules/simpletest/tests/file_test.module Implements hook_file_delete().
file_test_file_download modules/simpletest/tests/file_test.module Implements hook_file_download().
file_test_file_insert modules/simpletest/tests/file_test.module Implements hook_file_insert().
file_test_file_load modules/simpletest/tests/file_test.module Implements hook_file_load().
file_test_file_mimetype_mapping_alter modules/simpletest/tests/file_test.module Implements hook_file_mimetype_mapping_alter().
file_test_file_move modules/simpletest/tests/file_test.module Implements hook_file_move().
file_test_file_scan_callback modules/simpletest/tests/file.test Helper function for testing file_scan_directory(). 1 2
file_test_file_scan_callback_reset modules/simpletest/tests/file.test Reset static variables used by file_test_file_scan_callback(). 1
file_test_file_update modules/simpletest/tests/file_test.module Implements hook_file_update().
file_test_file_url_alter modules/simpletest/tests/file_test.module Implements hook_file_url_alter().
file_test_file_validate modules/simpletest/tests/file_test.module Implements hook_file_validate().
file_test_get_all_calls modules/simpletest/tests/file_test.module Get an array with the calls for all hooks. 1
file_test_get_calls modules/simpletest/tests/file_test.module Get the arguments passed to invocation of a given hook since file_test_reset() was last called. 1
file_test_menu modules/simpletest/tests/file_test.module Implements hook_menu().
file_test_reset modules/simpletest/tests/file_test.module Reset/initialize the history of calls to the file_* hooks. 12
file_test_set_return modules/simpletest/tests/file_test.module Assign a return value for a given operation. 3
file_test_stream_wrappers modules/simpletest/tests/file_test.module Implements hook_stream_wrappers().
file_test_validator modules/simpletest/tests/file.test Helper validator that returns the $errors parameter.
file_theme modules/file/file.module Implements hook_theme().
file_transfer includes/file.inc Transfers a file to the client using HTTP. 2
file_unmanaged_copy includes/file.inc Copies a file to a new location without invoking the file API. 15
file_unmanaged_delete includes/file.inc Deletes a file without database changes or hook invocations. 12
file_unmanaged_delete_recursive includes/file.inc Deletes all files and directories in the specified filepath recursively. 13
file_unmanaged_move includes/file.inc Moves a file to a new location without database changes or hook invocation. 7
file_unmanaged_save_data includes/file.inc Saves a string to the specified destination without invoking file API. 10
file_unmunge_filename includes/file.inc Undoes the effect of file_munge_filename(). 1
file_upload_max_size includes/file.inc Determines the maximum file upload size by querying the PHP settings. 4
file_uri_normalize_dot_segments includes/file.inc Normalize dot segments in a URI. 3
file_uri_scheme includes/file.inc Returns the scheme of a URI (e.g. a stream). 36
file_uri_target includes/file.inc Returns the part of a URI after the schema. 18
file_usage_add includes/file.inc Records that a module is using a file. 9
file_usage_delete includes/file.inc Removes a record to indicate that a module is no longer using a file. 8

Other projects


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