You are here

function toolbar_themes_install in Toolbar Themes 8

Implements hook_install().

File

./toolbar_themes.install, line 17

Code

function toolbar_themes_install() {
  if ($roles = user_roles(FALSE, 'access toolbar')) {
    foreach ($roles as $rid => $role) {
      user_role_grant_permissions($rid, [
        'configure toolbar_themes',
      ]);
    }
  }
}