function notify_save_notification

6.x notify.module notify_save_notification($user_id, $cid = 0, $content_type = "", $method, $address_or_num, $subject, $msg, $type = 'default')

Actually writes our notification to our notification_history table.

1 call to notify_save_notification()
notify_send_notification_to_user in modules/notify/notify.module
$cid is the related content's cid, if applicable.

File

modules/notify/notify.module, line 76

Code

function notify_save_notification($user_id, $cid = 0, $content_type = "", $method, $address_or_num, $subject, $msg, $type = 'default') {
  db_query("INSERT INTO notification_history (cid, content_type, to_user_id, notification_method, to_address, subject, msg, notification_type, submitted)
              VALUES (?,?,?,?,?,?,?,?,?) ", array($cid, $content_type, intval($user_id), $method, $address_or_num, $subject, $msg, $type, time()));

  return db_insert_id();
}