You are here

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

Same name and namespace in other branches
  1. 6.2 content_lock.install \content_lock_install()
  2. 6 content_lock.install \content_lock_install()
  3. 7.3 content_lock.install \content_lock_install()
  4. 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',
  ));
}