function _content_lock_still_locked in Content locking (anti-concurrent editing) 6
Same name and namespace in other branches
- 6.2 content_lock.module \_content_lock_still_locked()
- 7.3 includes/content_lock.func.inc \_content_lock_still_locked()
- 7 content_lock.module \_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 565 - Allows users to lock documents for modification.
Code
function _content_lock_still_locked($uid, $nid) {
$result = db_result(db_query("SELECT count(cl.nid) FROM {content_lock} as cl WHERE cl.uid = %d AND cl.nid=%d", $uid, $nid));
return $result;
}