You are here

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

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

Release a locked node.

Parameters

int $nid: The node id to release the edit lock for.

int $uid: If set, verify that a lock belongs to this user prior to release.

6 calls to content_lock_release()
content_lock_node_delete in ./content_lock.module
Implements hook_node_delete().
content_lock_node_update in ./content_lock.module
Implements hook_node_update().
content_lock_release_item in includes/content_lock.pages.inc
Menu callback.
content_lock_release_own_item in includes/content_lock.pages.inc
Release the lock of a node.
content_lock_timeout_cron in modules/content_lock_timeout/content_lock_timeout.module
Implements hook_cron().

... See full list

1 string reference to 'content_lock_release'
content_lock_hook_info in ./content_lock.module
Implements hook_hook_info().

File

./content_lock.module, line 449

Code

function content_lock_release($entity_id, $uid = NULL, $entity_type = 'node') {

  // Load module inc file.
  module_load_include('inc', 'content_lock', 'includes/content_lock.func');

  // Delete locking item from database.
  _content_lock_locking_delete($entity_id, $uid, $entity_type);
  module_invoke_all('content_lock_release', $entity_id, $entity_type);
}