? extlink.title.0.patch
Index: extlink.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/extlink/extlink.js,v
retrieving revision 1.1.2.9
diff -u -p -r1.1.2.9 extlink.js
--- extlink.js	30 Apr 2008 03:02:25 -0000	1.1.2.9
+++ extlink.js	13 Aug 2008 18:21:58 -0000
@@ -54,6 +54,16 @@ if (Drupal.jsEnabled) {
       }
     }
 
+    if (Drupal.settings.extlink.extTitle) {
+      // Set a user-defined title attribute to all links not containing images.
+      if (parseFloat($().jquery) < 1.2) {
+        $(external_links).not('[img]').attr('title', Drupal.settings.extlink.extTitle);
+      }
+      else {
+        $(external_links).not($(external_links).find('img').parents('a')).attr('title', Drupal.settings.extlink.extTitle);
+      }
+    }
+
     if (Drupal.settings.extlink.mailtoClass) {
       // Apply the "mailto" class to all mailto links not containing images.
       if (parseFloat($().jquery) < 1.2) {
@@ -69,4 +79,4 @@ if (Drupal.jsEnabled) {
       $(external_links).attr('target', Drupal.settings.extlink.extTarget);
     }
   });
-}
\ No newline at end of file
+}
Index: extlink.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/extlink/extlink.module,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 extlink.module
--- extlink.module	30 Apr 2008 02:58:22 -0000	1.1.2.5
+++ extlink.module	13 Aug 2008 18:21:58 -0000
@@ -17,6 +17,7 @@ function extlink_menu($may_cache) {
     $path = drupal_get_path('module', 'extlink');
     drupal_add_js($path .'/extlink.js');
     drupal_add_js(array('extlink' => array(
+      'extTitle'      => check_plain(variable_get('extlink_title', 'title')),
       'extTarget'     => variable_get('extlink_target', 0),
       'extClass'      => variable_get('extlink_class', 'ext'),
       'extSubdomains' => variable_get('extlink_subdomains', 1),
@@ -63,6 +64,14 @@ function extlink_admin_settings() {
     '#default_value' => variable_get('extlink_target', 0),
     '#description' => t('Should all external links be opened in a new window?'),
   );
+
+  $form['extlink_title'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Title attribute for external links'),
+    '#return_value' => 'title',
+    '#default_value' => variable_get('extlink_title', ''),
+    '#description' => t('Text displayed when a user hovers over an external link.'),
+  );
   
   return system_settings_form($form);
-}
\ No newline at end of file
+}
