Comments

add1sun’s picture

Status: Active » Needs review
StatusFileSize
new843 bytes

Wow, look at me, I'm just making stuff up! But we should at least have a docblock here, eh?

pasqualle’s picture

StatusFileSize
new847 bytes

- removed the variable type from @param
- removed trailing spaces
- used descriptions from other functions (I am not sure if it is better)

Status: Needs review » Needs work

The last submitted patch, doc-user_external_load-718962-2.patch, failed testing.

pasqualle’s picture

@@ -183,6 +183,15 this is the problem with my patch. I just modified the patch file, and forgot that it has more lines than the first patch. So it needs a reroll.

add1sun’s picture

When working on other patches Crell pointed out that adding the variable type is desirable now and some examples on http://drupal.org/node/1354 use that, so the variable type needs to go back in.

pasqualle’s picture

it's amazing how inconsistent Drupal core is.. I do not understand why they did not roll a patch when that handbook page was made..

or roll a patch for: http://drupal.org/project/coder_tough_love

@param and @return syntax does not indicate the data type.

jhodgdon’s picture

That's a new standard.

Rolling a single patch to figure out all of the @param and @return types and adding them to Drupal core would have been a HUGE HUGE HUGE task, and the patch would never have gotten reviewed.

jhodgdon’s picture

Another comment on the patch in #2: All function headers should start with a verb in 3rd person, such as "Fetches" rather than "Fetch".

add1sun’s picture

Status: Needs work » Needs review
StatusFileSize
new845 bytes

Rerolled

jhodgdon’s picture

StatusFileSize
new830 bytes

Looks good, except shouldn't we say ID rather than id?

Hmm... Also I think maybe we shouldn't call it a $user object, since $user is the global for the currently logged-in user...

How about this wording?

smyleeface’s picture

Status: Needs review » Reviewed & tested by the community

Formatting looks good and wording makes sense to me.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

w00t for docs! Committed to HEAD. :)

Status: Fixed » Closed (fixed)

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