function admin_login_path_install in Admin Login Path 2.x
Same name and namespace in other branches
- 8 admin_login_path.install \admin_login_path_install()
Implements hook_install().
File
- ./
admin_login_path.install, line 13 - Contains admin_login_path.install.
Code
function admin_login_path_install() {
// Allow anon users to use the admin theme.
user_role_grant_permissions(AccountInterface::ANONYMOUS_ROLE, [
'view the administration theme',
]);
user_role_grant_permissions(AccountInterface::AUTHENTICATED_ROLE, [
'view the administration theme',
]);
}