You are here

function _faq_ask_get_token in FAQ_Ask 6.2

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

Identical to drupal_get_token() but without the session variable and the salt

Parameters

string $value:

4 calls to _faq_ask_get_token()
faq_ask_mail in ./faq_ask.module
Implementation of hook_mail(). This function completes the email, allowing for placeholder substitution. @TODO: notify_asker. @TODO: define messages & subjects on settings page, with list of tokens. how to handle newlines?
faq_ask_nodeapi in ./faq_ask.module
Implementation of hook_nodeapi().
_faq_ask_list_unanswered in ./faq_ask.module
This is the code to select the Unanswered Questions for the block. It is also used by the "unanswered" page by setting a very high limit.
_faq_ask_valid_token in ./faq_ask.module

File

./faq_ask.module, line 1766
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_token($value = '') {
  $private_key = drupal_get_private_key();
  return md5($value . $private_key);
}