You are here

function role_theme_switcher_uninstall in Role Theme Switcher 6

File

./role_theme_switcher.install, line 3

Code

function role_theme_switcher_uninstall() {
  $roles = user_roles();

  // Get all themes
  $themes = list_themes();
  foreach ($roles as $id => $role) {
    variable_del(strtolower('role_theme_switcher_' . $id . '_theme'));
  }
}