function content_lock_install in Content locking (anti-concurrent editing) 7
Same name and namespace in other branches
- 6.2 content_lock.install \content_lock_install()
- 6 content_lock.install \content_lock_install()
- 7.3 content_lock.install \content_lock_install()
- 7.2 content_lock.install \content_lock_install()
Implement hook_install().
Enable the 'check out documents' permission for authenticated users by default since this is the most common use-case.
File
- ./
content_lock.install, line 9
Code
function content_lock_install() {
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array(
'check out documents',
));
}