function _faq_ask_set_faq_notification in FAQ_Ask 6.2
Same name and namespace in other branches
- 7 faq_ask.module \_faq_ask_set_faq_notification()
Set a notification with an e-mail address attached to a node
Parameters
int $nid: Node id of question where there is a notification
string $email: Address to send the notification
1 call to _faq_ask_set_faq_notification()
File
- ./
faq_ask.module, line 631 - This module is an add-on to the FAQ module that allows users with the 'ask question' permission to create a question which will be queued for an 'expert' to answer.
Code
function _faq_ask_set_faq_notification($nid, $email) {
_faq_ask_delete_faq_notification($nid);
$data = array(
'nid' => $nid,
'email' => $email,
);
drupal_write_record('faq_ask_notify', $data);
}