diff --git a/core/includes/file.inc b/core/includes/file.inc index 7709250..0cf51de 100644 --- a/core/includes/file.inc +++ b/core/includes/file.inc @@ -696,9 +696,6 @@ function file_usage_list(stdClass $file) { /** * Records that a module is using a file. * - * This usage information will be queried during file_delete() to ensure that - * a file is not in use before it is physically removed from disk. - * * Examples: * - A module that associates files with nodes, so $type would be * 'node' and $id would be the node's nid. Files for all revisions are stored @@ -1425,8 +1422,8 @@ function file_space_used($uid = NULL, $status = FILE_STATUS_PERMANENT) { * Saves a file upload to a new location. * * The file will be added to the {file_managed} table as a temporary file. - * Temporary files are periodically cleaned. To make the file a permanent file, - * assign the status and use file_save() to save the changes. + * Temporary files are periodically cleaned. Use file_usage_add() to register + * the usage of the file which will automatically mark it as permanent. * * @param $source * A string specifying the filepath or URI of the uploaded file to save.