You are here

function _faq_ask_valid_token in FAQ_Ask 6.2

Same name and namespace in other branches
  1. 7 faq_ask.module \_faq_ask_valid_token()
1 call to _faq_ask_valid_token()
faq_ask_answer in ./faq_ask.module
This function is called when an expert selects a question to answer. It changes the status option to "published" then goes to the regular FAQ edit function.

File

./faq_ask.module, line 1772
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_valid_token($token, $value = '', $skip_anonymous = FALSE) {
  global $user;
  return $skip_anonymous && $user->uid == 0 || $token == _faq_ask_get_token($value);
}