function activity_node_update in Activity 7
Implements hook_node_update().
File
- ./
activity.module, line 666 - Records Activity across the site and surfaces that to Views.
Code
function activity_node_update($node) {
entity_load('node', array(), array(), TRUE);
// Recreate the messages with the new node information.
$records = db_query("SELECT * FROM {activity} WHERE nid = :nid", array(
":nid" => $node->nid,
))
->fetchAll();
activity_recreate_messages($records);
// Update the published / unpublished status field.
activity_update_status($records);
}