Index: link.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/link/link.module,v
retrieving revision 1.24.4.1
diff -u -r1.24.4.1 link.module
--- link.module	4 Jul 2009 19:07:42 -0000	1.24.4.1
+++ link.module	16 Oct 2009 18:20:11 -0000
@@ -404,6 +404,9 @@
     'link_formatter_separate' => array(
       'arguments' => array('element' => NULL),
     ),
+    'link_formatter_title' => array(
+      'arguments' => array('element' => NULL),
+    ),
     'link' => array(
       'arguments' => array('element' => NULL),
     ),
@@ -527,6 +530,11 @@
       'field types' => array('link'),
       'multiple values' => CONTENT_HANDLE_CORE,
     ),
+    'title' => array(
+      'label' => t('Title, not as a link'),
+      'field types' => array('link'),
+      'multiple values' => CONTENT_HANDLE_CORE,
+    ),
   );
 }
 
@@ -587,6 +595,18 @@
   return $output;
 }
 
+/**
+ * Theme function for 'title' text field formatter.
+ */
+function theme_link_formatter_title($element) {
+  $class = empty($element['#item']['attributes']['class']) ? '' : ' '. $element['#item']['attributes']['class'];
+  unset($element['#item']['attributes']['class']);
+
+  $output = '';
+  $output .= '<span class="link-title">'. (empty($element['#item']['title']) ? '' : $element['#item']['display_title']) .'</span>';
+  return $output;
+}
+
 function link_token_list($type = 'all') {
   if ($type == 'field' || $type == 'all') {
     $tokens = array();
