Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 9.x
»
file.module
»
file_load
Search Drupal 9.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 9.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
Deprecated
53 calls to file_load()
CopyTest::testExistingError
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
CopyTest.php
Test that copying over an existing file fails when
FILE_EXISTS_ERROR
is specified.
CopyTest::testExistingRename
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
CopyTest.php
Test renaming when copying over a file that already exists.
CopyTest::testExistingReplace
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
CopyTest.php
Test replacement when copying over a file that already exists.
CopyTest::testNormal
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
CopyTest.php
Test file copying in the normal, base case.
DeleteTest::testInUse
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
DeleteTest.php
Tries deleting a file that is in use.
DeleteTest::testUnused
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
DeleteTest.php
Tries deleting a normal file (as opposed to a directory, symlink, etc).
EntityCrudHookTest::testFileHooks
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityCrudHookTest.php
Tests hook invocations for CRUD operations on files.
FileFieldDisplayTest::testNodeDisplay
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldDisplayTest.php
Tests normal formatter display on node display.
FileFieldPathTest::testUploadPath
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldPathTest.php
Tests the normal formatter display on node display.
FileFieldRevisionTest::testRevisions
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldRevisionTest.php
Tests creating multiple revisions of a node and managing attached files.
FileFieldRSSContentTest::testFileFieldRSSContent
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldRSSContentTest.php
Tests RSS enclosure formatter display for RSS feeds.
FileFieldTestBase::assertFileEntryExists
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldTestBase.php
Asserts that a file exists in the database.
FileFieldTestBase::assertFileEntryNotExists
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldTestBase.php
Asserts that a file does not exist in the database.
FileFieldValidateTest::testFileExtension
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldValidateTest.php
Tests file extension checking.
FileFieldValidateTest::testFileMaxSize
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldValidateTest.php
Tests the max file size validator.
FileFieldValidateTest::testRequired
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldValidateTest.php
Tests the required property on file fields.
FileFieldWidgetTest::testPrivateFileComment
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldWidgetTest.php
Tests that download restrictions on private files work on comments.
FileFieldWidgetTest::testPrivateFileSetting
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldWidgetTest.php
Tests a file field with a "Private files" upload destination setting.
FileFieldWidgetTest::testSingleValuedWidget
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileFieldWidgetTest.php
Tests upload and remove buttons for a single-valued File field.
FilePrivateTest::testPrivateFile
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FilePrivateTest.php
Tests file access for file uploaded to a private node.
FileTokenReplaceTest::testFileTokenReplacement
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
FileTokenReplaceTest.php
Creates a file, then tests the tokens generated from it.
file_cron
in drupal/
core/
modules/
file/
file.module
Implements
file_cron
()
file_field_delete
in drupal/
core/
modules/
file/
file.field.inc
Implements
hook_field_delete
().
file_field_delete_revision
in drupal/
core/
modules/
file/
file.field.inc
Implements
hook_field_delete_revision
().
file_field_insert
in drupal/
core/
modules/
file/
file.field.inc
Implements
hook_field_insert
().
file_field_update
in drupal/
core/
modules/
file/
file.field.inc
Implements
hook_field_update
().
file_managed_file_process
in drupal/
core/
modules/
file/
file.module
Render API callback: Expands the managed_file element type.
file_managed_file_validate
in drupal/
core/
modules/
file/
file.module
Render API callback: Validates the managed_file element.
file_managed_file_value
in drupal/
core/
modules/
file/
file.module
Render API callback: Determines the value for a managed_file type element.
hook_field_prepare_view
in drupal/
core/
modules/
field/
field.api.php
Prepare field values prior to display.
ImageFieldDisplayTest::testImageFieldDefaultImage
in drupal/
core/
modules/
image/
lib/
Drupal/
image/
Tests/
ImageFieldDisplayTest.php
Test use of a default image with an image field.
image_field_delete_field
in drupal/
core/
modules/
image/
image.module
Implements
hook_field_delete_field
().
image_field_delete_instance
in drupal/
core/
modules/
image/
image.module
Implements
hook_field_delete_instance
().
image_field_prepare_view
in drupal/
core/
modules/
image/
image.field.inc
Implements
hook_field_prepare_view
().
image_field_update_field
in drupal/
core/
modules/
image/
image.module
Implements
hook_field_update_field
().
image_field_update_instance
in drupal/
core/
modules/
image/
image.module
Implements
hook_field_update_instance
().
LoadTest::testLoadMissingFid
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
LoadTest.php
Try to load a non-existent file by fid.
LoadTest::testSingleValues
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
LoadTest.php
Load a single file and ensure that the correct values are returned.
MoveTest::testExistingError
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
MoveTest.php
Test that moving onto an existing file fails when
FILE_EXISTS_ERROR
is specified.
MoveTest::testExistingRename
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
MoveTest.php
Test renaming when moving onto a file that already exists.
MoveTest::testExistingReplace
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
MoveTest.php
Test replacement when moving onto a file that already exists.
MoveTest::testExistingReplaceSelf
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
MoveTest.php
Test replacement when moving onto itself.
MoveTest::testNormal
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
MoveTest.php
Move a normal file.
SaveDataTest::testExistingError
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
SaveDataTest.php
Test that
file_save_data
() fails overwriting an existing file.
SaveDataTest::testExistingRename
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
SaveDataTest.php
Test
file_save_data
() when renaming around an existing file.
SaveDataTest::testExistingReplace
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
SaveDataTest.php
Test
file_save_data
() when replacing an existing file.
SaveDataTest::testWithFilename
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
SaveDataTest.php
Test the
file_save_data
() function when a filename is provided.
SaveDataTest::testWithoutFilename
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
SaveDataTest.php
Test the
file_save_data
() function when no filename is provided.
SaveUploadTest::testNormal
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
Tests/
SaveUploadTest.php
Test the
file_save_upload
() function.
theme_file_link
in drupal/
core/
modules/
file/
file.module
Returns HTML for a link to a file.
UserPictureTest::saveUserPicture
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserPictureTest.php
Edits the user picture for the test user.
UserPictureTest::testCreateDeletePicture
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserPictureTest.php
Tests creation, display, and deletion of user pictures.
UserPictureUpgradePathTest::testUserPictureUpgrade
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Upgrade/
UserPictureUpgradePathTest.php
Tests expected user picture conversions after a successful upgrade.