summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-08-10 16:51:27 -0400
committerDries Buytaert <dries@buytaert.net>2011-08-10 16:51:27 -0400
commitd20a9ee9641cf84fca822ff209b6b89b0f5a48a7 (patch)
treec6f89f66b88fee8a56c34e52645a014b0381e946 /modules
parente762e63fed217ae620b09315a88ac425a71e5f45 (diff)
downloadbrdo-d20a9ee9641cf84fca822ff209b6b89b0f5a48a7.tar.gz
brdo-d20a9ee9641cf84fca822ff209b6b89b0f5a48a7.tar.bz2
- Patch #1196318 by James_Stallings: node_last_changed() is lacking doc.
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.module9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 9a5ca154f..6f750b4d2 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -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;
}