/[drupal]/contributions/modules/role_theme_switcher/role_theme_switcher.install
ViewVC logotype

Diff of /contributions/modules/role_theme_switcher/role_theme_switcher.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3.2.1, Wed Feb 18 16:56:40 2009 UTC revision 1.3.2.2, Fri Feb 20 10:20:07 2009 UTC
# Line 0  Line 1 
1    <?php
2    
3    function role_theme_switcher_uninstall()
4    {
5      $roles = user_roles();
6    
7      // Get all themes
8      $themes = list_themes();
9    
10      foreach ($roles as $id => $role)
11      {
12        $role_name = str_replace(' ', '_', $role);
13        variable_del(strtolower($role_name).'_theme');
14      }
15    }

Legend:
Removed from v.1.3.2.1  
changed lines
  Added in v.1.3.2.2

  ViewVC Help
Powered by ViewVC 1.1.2