function comment_notify_update_notification in Comment Notify 7
Same name and namespace in other branches
- 8 comment_notify.inc \comment_notify_update_notification()
Updated a notification with a different notification type.
Parameters
int $cid:
int $notify:
Return value
bool
1 call to comment_notify_update_notification()
- comment_notify_comment_update in ./
comment_notify.module - Implements hook_comment_update().
File
- ./
comment_notify.inc, line 175 - Contains functions which utilize the database and other internal helpers.
Code
function comment_notify_update_notification($cid, $notify) {
return (bool) db_update('comment_notify')
->fields(array(
'notify' => $notify === NULL ? 0 : $notify,
))
->condition('cid', $cid)
->execute();
}