function _content_lock_still_locked in Content locking (anti-concurrent editing) 7
Same name and namespace in other branches
- 6.2 content_lock.module \_content_lock_still_locked()
- 6 content_lock.module \_content_lock_still_locked()
- 7.3 includes/content_lock.func.inc \_content_lock_still_locked()
- 7.2 content_lock.module \_content_lock_still_locked()
1 call to _content_lock_still_locked()
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();
}