function tokenauth_insert in Token authentication 7
Same name and namespace in other branches
- 6.2 tokenauth.inc \tokenauth_insert()
 - 6 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  - Implements hook_enable().
 - tokenauth_user_insert in ./
tokenauth.module  - Implements hook_user_insert().
 
File
- ./
tokenauth.inc, line 79  - Provides tokenauth API for Token Authentication module.
 
Code
function tokenauth_insert($uid = NULL, $token = NULL) {
  return tokenauth_reset($uid, $token, FALSE);
}