API page: http://api.drupal.org/api/drupal/modules--node--node.module/function/nod...

Describe the problem you have found:

No PhpDoc at all even though this function has a param and a return value.

Please add these so that smart IDEs can use it for IntelliSense support.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Title: Documentation problem with node_last_changed » node_last_changed is lacking doc
Version: 7.2 » 8.x-dev
Issue tags: +Needs backport to D7

Thanks for reporting! We fix in 8.x then port back to 7.x

James_Stallings’s picture

Assigned: Unassigned » James_Stallings
James_Stallings’s picture

Assigned: James_Stallings » Unassigned
Status: Active » Needs review
FileSize
528 bytes
jhodgdon’s picture

Status: Needs review » Needs work

"id" is a psychological term -- please use ID to refer to an identifying number (yes, I know -- not done consistently in the current doc, but we're trying!). :)

You might also consider in the @return adding "giving the time the node was last updated" or something like that?

James_Stallings’s picture

Status: Needs work » Needs review
FileSize
572 bytes
jhodgdon’s picture

Status: Needs review » Needs work

Almost there! The only thing I would change is a -> the in the @return, because by the time the function is returning, we are talking about a specific node:

+ * @return
+ *   A unix timestamp indicating the last time a node was changed.

should be "last time the node was changed"

James_Stallings’s picture

Status: Needs work » Needs review
FileSize
574 bytes

All set!

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks good! 8.x/7.x material.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x and 8.x. Thanks.

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