You are here

function nodejs_generate_content_token in Node.js integration 6

Same name and namespace in other branches
  1. 8 nodejs.module \nodejs_generate_content_token()
  2. 7 nodejs.module \nodejs_generate_content_token()

Generate a token for a piece of content.

1 call to nodejs_generate_content_token()
nodejs_send_content_channel_token in ./nodejs.module
Send a content channel token to Node.js.

File

./nodejs.module, line 6

Code

function nodejs_generate_content_token() {
  return _drupal_hmac_base64(_drupal_random_bytes(512), drupal_get_private_key() . _drupal_get_hash_salt());
}