The documentation for image_style_create_derivative incorrectly lists NULL as one of the possible return values. All code paths in the function return either TRUE or FALSE.

I've also updated the doxygen block for that function to adhere better to the Doxygen and comments formatting conventions, added an additional paragraph explaining what the function does and included a @see to image_style_load for the image style array information.

Comments

jhodgdon’s picture

Status: Needs review » Needs work

Good catch! Agreed with your assessment and nice work on the cleanup.

The patch still needs a couple of minor things corrected:
- Should be a comma before and in the first paragraph (our style standards require lists of a, b, and c to have a comma before the and).
- I think maybe there should be an "or" before FALSE in the @return. "TRUE if ..., or FALSE if..."

mr.baileys’s picture

Status: Needs work » Needs review
StatusFileSize
new1.2 KB

Thanks for pointing out the "a, b, and c" convention, wasn't aware of that.

Updated patch attached.

Status: Needs review » Needs work

The last submitted patch, 1051038-image-style-create-derivative-docs.patch, failed testing.

mr.baileys’s picture

Status: Needs work » Needs review
StatusFileSize
new1.19 KB

Drats, forgot to use '--no-prefix' when generating the patch in #3.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, thanks!

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.