You are here

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

Same name and namespace in other branches
  1. 6.2 content_lock.module \_content_lock_still_locked()
  2. 6 content_lock.module \_content_lock_still_locked()
  3. 7.3 includes/content_lock.func.inc \_content_lock_still_locked()
  4. 7.2 content_lock.module \_content_lock_still_locked()
1 call to _content_lock_still_locked()
_content_lock_show_warnings in ./content_lock.module

File

./content_lock.module, line 731
Allows users to lock documents for modification.

Code

function _content_lock_still_locked($uid, $nid) {
  $query = db_select('content_lock', 'c')
    ->condition('nid', $nid)
    ->condition('uid', $uid)
    ->countQuery();
  $result = $query
    ->execute();
  return (bool) $result
    ->fetchCol();
}