You are here

function path_file_install in Path File 8

Implements hook_install().

File

./path_file.install, line 13
Contains path file install code.

Code

function path_file_install() {

  /*
    Enable default permissions for system roles.
    IMPORTANT: Modules SHOULD NOT automatically grant any user role access
    permissions in hook_install().
    However, like nodes, the 'View published Path file entity entities'
    permission is a very special case, since
    this permissions should be extended to anonymous and
    authenticated users for almost all use cases.
  */
  user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array(
    'View published Path file entity entities',
  ));
  user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array(
    'View published Path file entity entities',
  ));
}