You are here

function nodejs_auth_get_token_callback in Node.js integration 7

Same name and namespace in other branches
  1. 8 nodejs.module \nodejs_auth_get_token_callback()

Default nodejs_auth_get_token() implementation.

2 string references to 'nodejs_auth_get_token_callback'
nodejs_auth_get_token in ./nodejs.module
Get an auth token for the current user.
nodejs_uninstall in ./nodejs.install
Implements hook_uninstall().

File

./nodejs.module, line 646

Code

function nodejs_auth_get_token_callback($account) {
  drupal_session_start();
  return md5(session_id());
}