Index: languageicons.admin.inc
===================================================================
RCS file: languageicons.admin.inc
diff -N languageicons.admin.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ languageicons.admin.inc	11 Aug 2008 14:57:04 -0000
@@ -0,0 +1,56 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Admin page callbacks for the Language Icons module.
+ */
+
+/**
+ * Form builder; configure Language Icons.
+ *
+ * @ingroup forms
+ * @see system_settings_form()
+ */
+function languageicons_admin_settings() {
+  $form['show'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Add language icons'),
+    '#description' => t('Link types to add language icons.'),
+  );
+  $form['show']['languageicons_show_node'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Node links'),
+    '#default_value' => variable_get('languageicons_show_node', 1),
+  );
+  $form['show']['languageicons_show_block'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Language switcher block'),
+    '#default_value' => variable_get('languageicons_show_block', 1),
+  );
+  $form['languageicons_placement'] = array(
+    '#type' => 'radios',
+    '#title' => t('Icon placement'),
+    '#options' => array('before' => t('Before'), 'after' => t('After'), 'replace' => t('Replace')),
+    '#default_value' => variable_get('languageicons_placement', 'before'),
+    '#description' => t('Where to display the icon, relative to the link title.'),
+  );
+  $form['languageicons_path'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Icons file path'),
+    '#default_value' => variable_get('languageicons_path', drupal_get_path('module', 'languageicons').'/flags/*.png'),
+    '#size' => 70,
+    '#maxlength' => 180,
+    '#description' => t('Path for language icons, relative to Drupal installation. \'*\' is a placeholder for language code.'),
+  );
+  $form['languageicons_size'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Image size'),
+    '#default_value' => variable_get('languageicons_size', '16x12'),
+    '#size' => 10,
+    '#maxlength' => 10,
+    '#description' => t('Image size for language icons, in the form "width x height".'),
+  );
+
+  return system_settings_form($form);
+}
Index: languageicons.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/languageicons/languageicons.module,v
retrieving revision 1.2
diff -u -p -r1.2 languageicons.module
--- languageicons.module	27 Jul 2008 18:39:49 -0000	1.2
+++ languageicons.module	11 Aug 2008 14:57:04 -0000
@@ -61,6 +61,7 @@ function languageicons_menu() {
     'weight' => 10,
     'type' => MENU_LOCAL_TASK,
     'access arguments' => array('administer languages'),
+    'file' => 'languageicons.admin.inc',
   );
   return $items;
 }
@@ -110,54 +111,6 @@ function languageicons_link_add(&$link, 
 }
 
 /**
- * Form builder function.
- * 
- */
-function languageicons_admin_settings() {
-  
-  $form['show'] = array(
-    '#type' => 'fieldset',
-    '#title' => t('Add language icons'),
-    '#description' => t('Link types to add language icons.'),
-  );
-  $form['show']['languageicons_show_node'] = array(
-    '#type' => 'checkbox',
-    '#title' => t('Node links'),
-    '#default_value' => variable_get('languageicons_show_node', 1),
-  );
-  $form['show']['languageicons_show_block'] = array(
-    '#type' => 'checkbox',
-    '#title' => t('Language switcher block'),
-    '#default_value' => variable_get('languageicons_show_block', 1),
-  );
-  $form['languageicons_placement'] = array(
-    '#type' => 'radios',
-    '#title' => t('Icon placement'),
-    '#options' => array('before' => t('Before'), 'after' => t('After'), 'replace' => t('Replace')),
-    '#default_value' => variable_get('languageicons_placement', 'before'),
-    '#description' => t('Where to display the icon, relative to the link title.'),
-  );
-  $form['languageicons_path'] = array(
-    '#type' => 'textfield',
-    '#title' => t('Icons file path'),
-    '#default_value' => variable_get('languageicons_path', drupal_get_path('module', 'languageicons').'/flags/*.png'),
-    '#size' => 70,
-    '#maxlength' => 180,
-    '#description' => t('Path for language icons, relative to Drupal installation. \'*\' is a placeholder for language code.'),
-  );
-  $form['languageicons_size'] = array(
-    '#type' => 'textfield',
-    '#title' => t('Image size'),
-    '#default_value' => variable_get('languageicons_size', '16x12'),
-    '#size' => 10,
-    '#maxlength' => 10,
-    '#description' => t('Image size for language icons, in the form "width x height".'),
-  );
-
-  return system_settings_form($form);
-}
-
-/**
  * Theme language icon
  * 
  * This function can be overridden for no language icons
@@ -188,4 +141,4 @@ function theme_languageicons_place($text
     default:
       return $icon . $separator . $text;
   }
-}
\ No newline at end of file
+}
