You are here

function _entityform_anonymous_get_token in Entityform 7.2

Return hashed secure token for an entityform_id

Parameters

$entityform_id:

Return value

string

3 calls to _entityform_anonymous_get_token()
entityform_anonymous_entityform_previous_submission_alter in entityform_anonymous/entityform_anonymous.module
Implements hook_entityform_previous_submission_alter().
entityform_anonymous_tokens in entityform_anonymous/entityform_anonymous.module
Implements hook_tokens().
_entityform_anonymous_user_submitted_form in entityform_anonymous/entityform_anonymous.module
Utility function to determine if current user submitted the form.

File

entityform_anonymous/entityform_anonymous.module, line 94
Main functions and hook implementations

Code

function _entityform_anonymous_get_token($entityform_id) {
  return md5(drupal_get_private_key() . $entityform_id);
}