You are here

public static function BookAccess::defaultAuthorGrants in Book access 7.2

Returns the default author access permissions.

1 call to BookAccess::defaultAuthorGrants()
book_access_init in ./book_access.module
Implements hook_init().

File

./book_access.module, line 588
Allows to set the access control for book nodes on a per book basis. Based on forum_access.module and tac_lite.module.

Class

BookAccess
@file

Code

public static function defaultAuthorGrants() {
  static $defaults = NULL;
  if (!$defaults) {
    $defaults = self::grantIDs();
    unset($defaults[array_search('grant_admin_access', $defaults)]);
    $defaults = array_values($defaults);
  }
  return $defaults;
}