function commons_core_nodeunread_action in Drupal Commons 6.2
Set a given node as unread for the current user
See also
File
- modules/
features/ commons_core/ commons_core.module, line 838
Code
function commons_core_nodeunread_action(&$node) {
global $user;
if ($user->uid) {
// Remove any records for this node for this user
db_query("DELETE FROM {history} WHERE nid = %d AND uid = %d", $node->nid, $user->uid);
}
}