function comment_notify_add_notification in Comment Notify 7
Same name and namespace in other branches
- 8 comment_notify.inc \comment_notify_add_notification()
Add a notification against a comment.
Parameters
int $cid:
int $notify:
string $notify_hash:
Return value
bool
1 call to comment_notify_add_notification()
- comment_notify_comment_insert in ./
comment_notify.module - Implements hook_comment_insert().
File
- ./
comment_notify.inc, line 144 - Contains functions which utilize the database and other internal helpers.
Code
function comment_notify_add_notification($cid, $notify, $notify_hash) {
return (bool) db_insert('comment_notify')
->fields(array(
'cid' => $cid,
'notify' => $notify === NULL ? 0 : $notify,
'notify_hash' => $notify_hash,
))
->execute();
}