function _faq_ask_get_faq_notification_email in FAQ_Ask 6.2
Same name and namespace in other branches
- 7 faq_ask.module \_faq_ask_get_faq_notification_email()
Helper function to fetch an email for notification assigned to an faq node
3 calls to _faq_ask_get_faq_notification_email()
- faq_ask_form_alter in ./
faq_ask.module - Implementation of hook_form_alter(). This is how we build the "ask question" form.
- faq_ask_nodeapi in ./
faq_ask.module - Implementation of hook_nodeapi().
- _faq_ask_list_unanswered in ./
faq_ask.module - This is the code to select the Unanswered Questions for the block. It is also used by the "unanswered" page by setting a very high limit.
File
- ./
faq_ask.module, line 592 - 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_get_faq_notification_email($nid) {
if ($nid != '') {
$result = db_query('SELECT email FROM {faq_ask_notify} WHERE nid=%d', $nid);
$mail = db_fetch_array($result);
return $mail['email'];
}
else {
return '';
}
}