? .svn
? 568710-2.patch
? LICENSE.txt
? civicrmtheme.patch
Index: civicrm_theme.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/civicrm_theme/civicrm_theme.info,v
retrieving revision 1.4.2.1
diff -u -p -r1.4.2.1 civicrm_theme.info
--- civicrm_theme.info	27 Apr 2008 18:35:14 -0000	1.4.2.1
+++ civicrm_theme.info	26 Dec 2009 05:03:04 -0000
@@ -1,6 +0,0 @@
-; $Id: civicrm_theme.info,v 1.4.2.1 2008/04/27 18:35:14 douggreen Exp $
-name = CiviCRM Theme
-description = define alternate themes for CiviCRM on the Drupal admin theme page
-dependencies[] = civicrm
-package = CiviCRM
-core = 6.x
Index: civicrm_theme.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/civicrm_theme/civicrm_theme.module,v
retrieving revision 1.2.2.3
diff -u -p -r1.2.2.3 civicrm_theme.module
--- civicrm_theme.module	13 Jan 2009 16:52:04 -0000	1.2.2.3
+++ civicrm_theme.module	26 Dec 2009 05:03:04 -0000
@@ -1,46 +0,0 @@
-<?php
-// $Id: civicrm_theme.module,v 1.2.2.3 2009/01/13 16:52:04 douggreen Exp $
-
-function civicrm_theme_init() {
-  if (arg(0) == 'civicrm') {
-    global $custom_theme;
-    switch (arg(1)) {
-      case 'admin':
-        $theme_var = 'civicrm_admin_theme';
-        break;
-      case 'event':
-        if (arg(2) == '' || arg(2) == 'manage') {
-          $theme_var = 'civicrm_admin_theme';
-        }
-        break;
-      default:
-        $theme_var = 'civicrm_theme';
-        break;
-    }
-    if ($theme_var && ($custom_theme = variable_get($theme_var, '0')) != '0') {
-      $path = drupal_get_path('module', 'system');
-      drupal_add_css($path .'/admin.css', 'module');
-    }
-  }
-  return array();
-}
-
-function civicrm_form_alter(&$form, $form_state, $form_id) {
-  if ($form_id == 'system_admin_theme_settings') {
-    $newform['civicrm_admin_theme'] = array(
-      '#type' => 'select',
-      '#options' => $form['admin_theme']['#options'],
-      '#title' => t('CiviCRM Administration theme'),
-      '#description' => t('Choose which theme the CiviCRM administration pages should display in.'),
-      '#default_value' => variable_get('civicrm_admin_theme', ''),
-    );
-    $newform['civicrm_theme'] = array(
-      '#type' => 'select',
-      '#options' => $form['admin_theme']['#options'],
-      '#title' => t('CiviCRM User theme'),
-      '#description' => t('Choose which theme the CiviCRM user pages should display in.'),
-      '#default_value' => variable_get('civicrm_theme', ''),
-    );
-    $form = array_merge(array_slice($form, 0, 1), $newform, array_slice($form, 1));
-  }
-}
Index: civicrmtheme.info
===================================================================
RCS file: civicrmtheme.info
diff -N civicrmtheme.info
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ civicrmtheme.info	26 Dec 2009 05:03:04 -0000
@@ -0,0 +1,6 @@
+; $Id: civicrm_theme.info,v 1.4.2.1 2008/04/27 18:35:14 douggreen Exp $
+name = CiviCRM Theme
+description = define alternate themes for CiviCRM on the Drupal admin theme page
+dependencies[] = civicrm
+package = CiviCRM
+core = 6.x
Index: civicrmtheme.module
===================================================================
RCS file: civicrmtheme.module
diff -N civicrmtheme.module
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ civicrmtheme.module	26 Dec 2009 05:03:04 -0000
@@ -0,0 +1,46 @@
+<?php
+// $Id: civicrmtheme.module,v 1.2.2.3 2009/01/13 16:52:04 douggreen Exp $
+
+function civicrmtheme_init() {
+  if (arg(0) == 'civicrm') {
+    global $custom_theme;
+    switch (arg(1)) {
+      case 'admin':
+        $theme_var = 'civicrm_admin_theme';
+        break;
+      case 'event':
+        if (arg(2) == '' || arg(2) == 'manage') {
+          $theme_var = 'civicrm_admin_theme';
+        }
+        break;
+      default:
+        $theme_var = 'civicrmtheme';
+        break;
+    }
+    if ($theme_var && ($custom_theme = variable_get($theme_var, '0')) != '0') {
+      $path = drupal_get_path('module', 'system');
+      drupal_add_css($path .'/admin.css', 'module');
+    }
+  }
+  return array();
+}
+
+function civicrmtheme_form_alter(&$form, $form_state, $form_id) {
+  if ($form_id == 'system_admin_theme_settings') {
+    $newform['civicrm_admin_theme'] = array(
+      '#type' => 'select',
+      '#options' => $form['admin_theme']['#options'],
+      '#title' => t('CiviCRM Administration theme'),
+      '#description' => t('Choose which theme the CiviCRM administration pages should display in.'),
+      '#default_value' => variable_get('civicrm_admin_theme', ''),
+    );
+    $newform['civicrmtheme'] = array(
+      '#type' => 'select',
+      '#options' => $form['admin_theme']['#options'],
+      '#title' => t('CiviCRM User theme'),
+      '#description' => t('Choose which theme the CiviCRM user pages should display in.'),
+      '#default_value' => variable_get('civicrmtheme', ''),
+    );
+    $form = array_merge(array_slice($form, 0, 1), $newform, array_slice($form, 1));
+  }
+}
