You are here

function hook_content_lock_release in Content locking (anti-concurrent editing) 7

Same name and namespace in other branches
  1. 6.2 content_lock.api.inc \hook_content_lock_release()
  2. 7.3 content_lock.api.php \hook_content_lock_release()
  3. 7.2 content_lock.api.php \hook_content_lock_release()

Respond to a node's lock being released.

This hook is called from content_lock_release() for every lock which is released. This hook might get called when there wasn't a lock on a node to begin with, but its being called always means that an attempt was made to unlock the given node.

Parameters

$nid: The node whose lock was released.

$uid: The uid of the user who initiated the lock's release or NULL if the lock release was automated (such as by the content_lock_timeouts module).

Related topics

File

./content_lock.api.inc, line 155
Document content_lock hooks.

Code

function hook_content_lock_release($nid, $uid = NULL) {

  /*
   * See the body of hook_content_lock_locked() ;-).
   */
}