function content_lock_permission in Content locking (anti-concurrent editing) 7
Same name and namespace in other branches
- 7.3 content_lock.module \content_lock_permission()
- 7.2 content_lock.module \content_lock_permission()
Implementation of hook_permission().
File
- ./
content_lock.module, line 11 - Allows users to lock documents for modification.
Code
function content_lock_permission() {
return array(
'check out documents' => array(
'title' => t('Check Out/Lock Documents'),
'description' => t('Enables users to lock documents and requires them to respect locks others have made.'),
),
'administer checked out documents' => array(
'title' => t('Administer Checked Out Documents'),
'description' => t('Enables administrators to view and break locks made by other users.'),
'restrict access' => TRUE,
),
);
}