You are here

function _faq_ask_get_faq_notifications in FAQ_Ask 6.2

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

Helper function fetching all notifications

Return value

array Array containing all outstanding notifications

1 call to _faq_ask_get_faq_notifications()
faq_ask_cron in ./faq_ask.module
Implementation of hook_cron().

File

./faq_ask.module, line 611
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_notifications() {
  $notifications = array();
  $result = db_query('SELECT nid, email FROM {faq_ask_notify}');
  while ($row = db_fetch_array($result)) {
    $notifications[$row['nid']] = $row['email'];
  }
  return $notifications;
}