Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Jun 2011 at 05:55 UTC
Updated:
29 Jul 2014 at 19:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
pillarsdotnet commentedPatch copies the relevant documentation from
file_unmanaged_save_data()tofile_save_data().Comment #2
pillarsdotnet commentedComment #3
pillarsdotnet commentedComment #4
jhodgdonProbably the grammar should be fixed too, as in one of your other issues?
If no value is provided, a randomized name will be generated and the file is saved using
is -> will be
Comment #5
pillarsdotnet commentedCorrected as suggested, and re-wrapped at 80 columns.
Comment #6
jhodgdonIt is not wrapped at 80 characters:
First line should have text from second line moved up.
Comment #7
pillarsdotnet commentedCorrected.
Comment #8
jhodgdonLooks good, thanks! 8.x/7.x please.
Comment #9
webchickI'm confused. In the rest of these issues, we've removed the "If no value provided" part. Why is this one special?
Comment #10
pillarsdotnet commentedBecause in this one the code to deal with the "if no value provided" case is present. In the other ones, the code is missing. Note that I also submitted patches for the other functions to make the code match the docs, but since the patch to make the docs match the code was committed, I closed the alternative as a duplicate.
Comment #11
jhodgdonwebchick: we're just trying to make the doc match the code. If someone wants to change the code, that's another matter...
Comment #12
webchickAh, ok, understood.
Committed to 8.x and 7.x. Thanks!
Comment #14
amonteroCross linking to related API feature proposal:
#1659116: Define FILE_STATUS_TEMPORARY and expose $status in file_save_data
Comment #15
amonteroTitle ammend