You are here

constant FILE_STATUS_PERMANENT in Drupal 7

Same name and namespace in other branches
  1. 8 core/includes/file.inc \FILE_STATUS_PERMANENT
  2. 6 includes/file.inc \FILE_STATUS_PERMANENT
  3. 9 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.

... See full list

File

includes/file.inc, line 70
API for handling file uploads and server file management.

Code

define('FILE_STATUS_PERMANENT', 1);