function content_lock_timeout_content_lock_locked in Content locking (anti-concurrent editing) 7.3
Same name and namespace in other branches
- 6.2 modules/content_lock_timeout/content_lock_timeout.module \content_lock_timeout_content_lock_locked()
- 6 modules/content_lock_timeout/content_lock_timeout.module \content_lock_timeout_content_lock_locked()
- 7 modules/content_lock_timeout/content_lock_timeout.module \content_lock_timeout_content_lock_locked()
- 7.2 modules/content_lock_timeout/content_lock_timeout.module \content_lock_timeout_content_lock_locked()
Implements hook_content_lock_locked().
Informs user that his lock will be considered stale.
File
- modules/
content_lock_timeout/ content_lock_timeout.module, line 140 - Allowed time-based automatic unlocking of nodes.
Code
function content_lock_timeout_content_lock_locked($nid, $uid) {
if (content_lock_verbose()) {
$on_edit = '';
if (variable_get('content_lock_timeout_on_edit', TRUE)) {
$on_edit = ' and up for grabs';
}
$time = format_interval(variable_get('content_lock_timeout_minutes', 30) * 60);
drupal_set_message(t('Your lock will be considered stale@on_edit in @time.', array(
'@on_edit' => $on_edit,
'@time' => $time,
)));
}
}