You are here

function content_lock_get_release_token in Content locking (anti-concurrent editing) 7.3

Same name and namespace in other branches
  1. 6.2 content_lock.module \content_lock_get_release_token()
  2. 7 content_lock.module \content_lock_get_release_token()
  3. 7.2 content_lock.module \content_lock_get_release_token()

Calculate the token required to unlock a node.

Tokens are required because they prevent CSRF.

See also

https://security.drupal.org/node/2429

5 calls to content_lock_get_release_token()
content_lock_js in ./content_lock.module
Load module javascript.
content_lock_locking in ./content_lock.module
Try to lock a document for editing.
content_lock_overview in includes/content_lock.pages.inc
Build an overview of locked documents.
_content_lock_node_form_handler_button in includes/content_lock.node.inc
Node and node revision handler button.
_content_lock_show_warnings_pending in includes/content_lock.func.inc
Warn pending locks.

File

./content_lock.module, line 322

Code

function content_lock_get_release_token($nid) {
  return drupal_get_token("content_lock/release/{$nid}");
}