Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Jun 2011 at 05:42 UTC
Updated:
29 Jul 2014 at 19:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pillarsdotnet commentedPatch to make the correction.
Comment #2
pillarsdotnet commentedComment #3
jhodgdonHow about "and the file will be saved"?
Comment #4
pillarsdotnet commentedCorrected as suggested, and re-wrapped comments at 80 columns.
Comment #5
jhodgdonWrapping isn't right - text from second line should be moved up to the first line (before your patched hunk). Also, only one space after . at end of sentence.
Comment #6
pillarsdotnet commentedCorrected.
Comment #7
jhodgdonLooks good, thanks!
8.x/7.x please.
Comment #8
webchickOnce again, a bit confused because in the other issues like this, we removed the "if no value specified" stuff.
Comment #9
pillarsdotnet commentedIn the other functions, the code to deal with the "if no value specified" case is missing, so the value is in fact required by the code, and the documentation was incorrect. In this function, there is code to deal with the "if no value specified" case, so the documentation is correct, except for the grammatical error.
Note that I also submitted patches for the other functions to make the code match the docs, rather than making the docs match the code. Since the doc fixes were committed, I closed the code-fixes as duplicates.
If we want to change this function to be consistent with the others in not dealing with the "if no value specified" case, I can submit yet another patch/issue.
Comment #10
jhodgdonRight. There's nothing in the code to deal with what happens if this required function parameter is missing. We don't normally document in PHP functions what happens if someone doesn't supply a required param, unless the code is doing something. Which it isn't here -- the original doc was wrong.
8.x/7.x please...
Comment #11
webchickGot it, thanks.
Committed to 8.x and 7.x.