Skip to content
Snippets Groups Projects
Commit 9764f077 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent b9ed13fe
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment