You are here

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

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

Check whether a node is configured to be protected by content_lock.

4 calls to _content_lock_is_lockable_node()
content_lock_content_lock_skip_locking in ./content_lock.module
content_lock_node_update in ./content_lock.module
Implement hook_node_update() to unlock a node after it's saved.
content_lock_node_validate in ./content_lock.module
Implement hook_node_validate() to check that the user is maintaining his lock.
content_lock_node_view in ./content_lock.module
Implement hook_node_view() to inform user if he's holding locks on other nodes.

File

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

Code

function _content_lock_is_lockable_node($node) {
  return !in_array(FALSE, module_invoke_all('content_lock_node_lockable', $node));
}