FILE_STATUS_PERMANENT
Same name in other branches
- 9 core/includes/file.inc \FILE_STATUS_PERMANENT
- 8.9.x core/includes/file.inc \FILE_STATUS_PERMANENT
Indicates that the file is permanent and should not be deleted.
Temporary files older than DRUPAL_MAXIMUM_TEMP_FILE_AGE will be removed during cron runs, but permanent files will not be removed during the file garbage collection process.
Related topics
22 uses of FILE_STATUS_PERMANENT
- FileFieldTestCase::assertFileIsPermanent in modules/
file/ tests/ file.test - Asserts that a file's status is set to permanent in the database.
- FileFieldWidgetTestCase::doTestTemporaryFileRemovalExploit in modules/
file/ tests/ file.test - Helper for testing exploiting the temporary file removal using fid.
- FilePrivateTestCase::testPrivateFile in modules/
file/ tests/ file.test - Tests file access for file uploaded to a private node.
- FileSaveDataTest::testExistingRename in modules/
simpletest/ tests/ file.test - Test file_save_data() when renaming around an existing file.
- FileSaveDataTest::testExistingReplace in modules/
simpletest/ tests/ file.test - Test file_save_data() when replacing an existing file.
File
-
includes/
file.inc, line 70
Code
define('FILE_STATUS_PERMANENT', 1);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.