You are here

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

Same name and namespace in other branches
  1. 6.2 content_lock.module \_content_lock_still_locked()
  2. 7.3 includes/content_lock.func.inc \_content_lock_still_locked()
  3. 7 content_lock.module \_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 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;
}