function nodejs_generate_content_token in Node.js integration 7
Same name and namespace in other branches
- 8 nodejs.module \nodejs_generate_content_token()
- 6 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 12
Code
function nodejs_generate_content_token() {
return drupal_hmac_base64(drupal_random_bytes(512), drupal_get_private_key() . drupal_get_hash_salt());
}