Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Feb 2013 at 07:09 UTC
Updated:
29 Jul 2014 at 21:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhodgdonThanks -- we should document this in 8.x first and then backport to 7.x.
Comment #2
richard.c.allen2386 commentedHere you go, this should be good?
Comment #3
jhodgdonThanks! Can you clean up the grammar and combine the two possibilities? Something like:
@return
Blah blah blah, or foo if (whatever, but include a verb).
Comment #4
richard.c.allen2386 commentedre-rolled, wasn't quite clear on the second part nor was anyone else in the office. maybe we're all terrible at grammar!
Comment #5
richard.c.allen2386 commentedComment #6
jhodgdonHow about "... if the file is not found" for the second part?
Comment #7
mitron commentedIt is less clear to call a module a "file" than an "item" so perhaps something like "....or an empty string if the item is not found." Perhaps something like the following:
Comment #8
jhodgdon#7 seems fine to me. Just make sure the line wraps if it goes over 80 characters. Thanks!
Comment #9
mitron commentedLooks like drupal_get_filename() returns NULL not an empty string when the file does not exist. There should be a test that asserts this.
Comment #10
peterx commentedMy quick test: http://petermoulding.com/test_drupal_functions
Comment #11
richard.c.allen2386 commentedI re-rolled using the comment from #7. The test function in #10 seems to indicate that it is an empty string.
Comment #12
jhodgdonThanks! I'll get this committed when the test result turns green.
Comment #13
mitron commentedDoes the backport for V7 go in this issue too?
Comment #14
jhodgdonIt will, but wait until the 8.x version is committed. Often the same patch can be applied and no one has to do any more work backporting it. :)
Comment #15
jhodgdonThanks again -- Committed to both 8.x and 7.x (no port required).
Comment #16
jhodgdon