function activity_comment_update in Activity 7
Implements hook_comment_update().
File
- ./
activity.module, line 688 - Records Activity across the site and surfaces that to Views.
Code
function activity_comment_update($comment) {
entity_load('comment', array(), array(), TRUE);
// Recreate the messages.
$records = db_query("SELECT * FROM {activity} WHERE type IN (:types) AND eid = :eid", array(
":types" => array(
'comment_insert',
),
":eid" => $comment->cid,
))
->fetchAll();
activity_recreate_messages($records);
// Mark comments as published / unpublished.
activity_update_status($records);
}