function _faq_ask_delete_faq_notification in FAQ_Ask 7
Same name and namespace in other branches
- 6.2 faq_ask.module \_faq_ask_delete_faq_notification()
Helper function to remove a notification from a question
Parameters
integer $nid: The Node Id to remove the notification from
2 calls to _faq_ask_delete_faq_notification()
- faq_ask_cron in ./
faq_ask.module - Implements hook_cron().
- faq_ask_node_update in ./
faq_ask.module - Implements hook_node_update().
File
- ./
faq_ask.module, line 776 - 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_delete_faq_notification($nid) {
$deleted = db_delete('faq_ask_notify')
->condition('nid', $nid)
->execute();
if ($deleted == 0) {
drupal_set_message(t('Attempt to delete email notification failed.'), 'error');
}
}