Commit 9764f077 authored by Dries's avatar Dries

- Patch #1196318 by James_Stallings: node_last_changed() is lacking doc.

parent b9ed13fe
......@@ -2075,6 +2075,15 @@ function node_page_title($node) {
return $node->title;
}
/**
* Finds the last time a node was changed.
*
* @param $nid
* The ID of a node.
*
* @return
* A unix timestamp indicating the last time the node was changed.
*/
function node_last_changed($nid) {
return db_query('SELECT changed FROM {node} WHERE nid = :nid', array(':nid' => $nid))->fetch()->changed;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment