You are here

function _faq_ask_delete_faq_notification in FAQ_Ask 6.2

Same name and namespace in other branches
  1. 7 faq_ask.module \_faq_ask_delete_faq_notification()

Delete the notification belonging to a node

Parameters

int $nid: Node id of which to delete the corresponding notification

4 calls to _faq_ask_delete_faq_notification()
faq_ask_cron in ./faq_ask.module
Implementation of hook_cron().
faq_ask_nodeapi in ./faq_ask.module
Implementation of hook_nodeapi().
faq_ask_submit in ./faq_ask.module
_faq_ask_set_faq_notification in ./faq_ask.module
Set a notification with an e-mail address attached to a node

File

./faq_ask.module, line 648
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) {
  $delete = db_query("DELETE FROM {faq_ask_notify} WHERE nid=%d", $nid);
  if ($delete === FALSE) {
    drupal_set_message(t('Attempt to delete email notification failed.'), 'error');
  }
}