function comment_notify_mark_comment_as_notified in Comment Notify 7
Same name and namespace in other branches
- 8 comment_notify.inc \comment_notify_mark_comment_as_notified()
Record that the owner of a comment notification has already been notified.
Parameters
int $cid:
Return value
bool
2 calls to comment_notify_mark_comment_as_notified()
- CommentNotifyMigrationHandler::complete in ./
comment_notify.migrate.inc - Implements MigrateDestinationHandler::complete().
- _comment_notify_mailalert in ./
comment_notify.module - Private function to send the notifications.
File
- ./
comment_notify.inc, line 222 - Contains functions which utilize the database and other internal helpers.
Code
function comment_notify_mark_comment_as_notified($comment) {
// First, mark the passed comment (an object, so passed by reference).
$comment->notified = 1;
// Next, store this fact in the DB as well.
return (bool) db_update('comment_notify')
->fields(array(
'notified' => 1,
))
->condition('cid', $comment->cid)
->execute();
}