function _faq_ask_get_faq_notification_email in FAQ_Ask 7
Same name and namespace in other branches
- 6.2 faq_ask.module \_faq_ask_get_faq_notification_email()
Helper function to fetch an email for notification assigned to an faq node
Parameters
integer $nid: The node Id where the e-mail is assoiciated
Return value
string Email associated with the node given by $nid
1 call to _faq_ask_get_faq_notification_email()
- faq_ask_node_update in ./
faq_ask.module - Implements hook_node_update().
File
- ./
faq_ask.module, line 712 - 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) {
return db_select('faq_ask_notify', 'fan')
->fields('fan', array(
'email',
))
->condition('nid', $nid)
->execute()
->fetchField();
}