diff -urpN mobile_theme.info mobile_theme.info
--- mobile_theme.info	2008-05-29 17:05:47.000000000 -0700
+++mobile_theme.info	2008-10-24 14:43:40.000000000 -0700
@@ -1,11 +1,6 @@
-; $Id: mobile_theme.info,v 1.1.2.1 2008/05/29 21:13:02 robloach Exp $
+; $Id$
 name = Mobile Theme
-description = Choose a mobile theme to use when the user is vising on a mobile device.
-core = 6.x
-dependencies[] = browscap
-; Information added by drupal.org packaging script on 2008-05-30
-version = "6.x-1.x-dev"
-core = "6.x"
-project = "mobile_theme"
-datestamp = "1212105947"
-
+description = Choose a mobile theme to use when the user is visiting on a mobile device.
+dependencies = browscap
+version = 5.x-1.x-dev
+core = 5.x
diff -urpN mobile_theme.module mobile_theme.module
--- mobile_theme.module	2008-05-29 14:13:02.000000000 -0700
+++ mobile_theme.module	2008-10-24 14:37:33.000000000 -0700
@@ -20,14 +20,14 @@ function mobile_theme_init() {
 /**
  * Alter the system theme settings form to add the mobile theme settings.
  */
-function mobile_theme_form_alter(&$form, $form_state, $form_id) {
+function mobile_theme_form_alter($form_id, &$form) {
   if ($form_id == 'system_theme_settings') {
     if ($form['var']['#value'] == 'theme_settings') {
       $themes = array('default' => t('Default'));
       $options = list_themes();
       foreach ($options as $name => $attr) {
         if ($attr->status) {
-          $themes[$name] = $attr->info['name'];
+          $themes[$name] = $attr->name  ;
         }
       }
       $form['mobile_theme'] = array(
@@ -45,7 +45,7 @@ function mobile_theme_form_alter(&$form,
         ),
         '#weight' => -4,
       );
-      $form['#submit'][] = 'mobile_theme_settings_submit';
+      $form['#submit']['mobile_theme_settings_submit'] = array(); // 'mobile_theme_settings_submit';
     }
   }
 }
@@ -54,7 +54,7 @@ function mobile_theme_form_alter(&$form,
  * Submit handler on the theme settings to save the mobile theme.
  */
 function mobile_theme_settings_submit($form, $form_state) {
-  if (isset($form_state['values']['mobile_theme_selection'])) {
-    variable_set('mobile_theme_selection', $form_state['values']['mobile_theme_selection']);
+  if (isset($form_state['mobile_theme_selection'])) {
+    variable_set('mobile_theme_selection', $form_state['mobile_theme_selection']);
   }
 }
