You are here

function _faq_ask_get_token in FAQ_Ask 7

Same name and namespace in other branches
  1. 6.2 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
Implements hook_mail().
template_preprocess_faq_ask_unanswered in ./faq_ask.unanswered.inc
Create a categorized list of nodes that are not answered.
_faq_ask_answerlink in ./faq_ask.unanswered.inc
Helper function to create a link to unanswered nodes using the toke verificationb
_faq_ask_valid_token in ./faq_ask.module

File

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