You are here

function tokenauth_insert in Token authentication 6.2

Same name and namespace in other branches
  1. 6 tokenauth.inc \tokenauth_insert()
  2. 7 tokenauth.inc \tokenauth_insert()

API Function to insert new user tokens.

Parameters

$uid: [optional] UID of a specific user for whom to add a token.

$token: [optional] A specific string to use as the token.

2 calls to tokenauth_insert()
tokenauth_enable in ./tokenauth.install
Implementation of hook_enable().
tokenauth_user in ./tokenauth.module
Implementation of hook_user().

File

./tokenauth.inc, line 87
Provides tokenauth API for Token Authentication module.

Code

function tokenauth_insert($uid = NULL, $token = NULL) {
  return tokenauth_reset($uid, $token, FALSE);
}