--- C:/Documents and Settings/Prodoc/Desktop/elf.module	Sun Jan 27 20:30:21 2008
+++ C:/Documents and Settings/Prodoc/Desktop/drupal/sites/all/modules/elf/elf.module	Wed Feb 13 23:13:32 2008
@@ -4,24 +4,30 @@
 /**
  * Implementation of hook_menu().
  */
-function elf_menu($may_cache) {
+function elf_menu() {
   $items = array();
 
-  if ($may_cache) {
-    $items[] = array(
-      'path' => 'admin/settings/elf',
-      'title' => t('External links filter'),
-      'description' => t('Configure external links filter'),
-      'callback' => 'drupal_get_form',
-      'callback arguments' => array('elf_admin_settings'),
-      'access' => user_access('administer site configuration')
-    );
-  }
-  else {
+	$items['admin/settings/elf'] = array(
+	  'title' => 'External links filter',
+	  'description' => 'Configure external links filter',
+	  'page callback' => 'drupal_get_form',
+	  'page arguments' => array('elf_admin_settings_form'),
+	  'access' => user_access('administer site configuration')
+	);
+	
+
+  return $items;
+}
+
+/**
+ * Implementation of hook_init().
+ */
+function elf_init() {
     if (variable_get('elf_css', TRUE)) {
       $path = drupal_get_path('module', 'elf');
       drupal_add_css($path .'/elf.css');
     }
+	
     if (variable_get('elf_window', FALSE)) {
       drupal_add_js('
         $(document).ready(function() {
@@ -30,12 +36,9 @@
         });
       ', 'inline');
     }
-  }
-
-  return $items;
 }
 
-function elf_admin_settings() {
+function elf_admin_settings_form() {
   $form = array();
 
   $form['elf_css'] = array(
@@ -78,7 +81,7 @@
 
 function elf_replace($match) {
   $link = $match[0];
-  $site_url = url(NULL, NULL, NULL, TRUE);
+  $site_url = url(NULL, array('absolute' => TRUE));
 
   // if the link is external (e.g., it starts with http) and it's not an absolute link to the current site
   if (strpos($match[1], 'http') === 0 && strpos($match[1], $site_url) === FALSE) {
--- C:/Documents and Settings/Prodoc/Desktop/elf.info	Sun Jan 27 21:00:07 2008
+++ C:/Documents and Settings/Prodoc/Desktop/drupal/sites/all/modules/elf/elf.info	Wed Feb 13 16:55:31 2008
@@ -2,7 +2,8 @@
 name = External Links Filter
 description = Adds a CSS class to all external and mailto links.
 ; Information added by drupal.org packaging script on 2008-01-27
-version = "5.x-2.0"
+version = "6.x-1.0-dev"
 project = "elf"
+core = 6.x
 datestamp = "1201464007"
 
