function _faq_ask_valid_token in FAQ_Ask 7
Same name and namespace in other branches
- 6.2 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.
File
- ./
faq_ask.module, line 2176 - 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);
}