? linkless_reference.patch
Index: citation_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/citation_filter/citation_filter.module,v
retrieving revision 1.3
diff -u -p -r1.3 citation_filter.module
--- citation_filter.module	15 Dec 2007 20:23:14 -0000	1.3
+++ citation_filter.module	17 Dec 2007 00:11:31 -0000
@@ -111,11 +111,12 @@ function citation_filter_append($refs, $
     if (!in_array($link, $links)) {
       $links[] = $link;
       $class = '#citation-'. $refnum;
+      $filter_link = empty($link) ? $title : l($title, $link); //allow linkless references
       if ($sup) {
-        $return .= '<br /><sup><a href="'. $class .'" name="'. substr($class, 1) .'" rel="nofollow">['. $refnum .']</a></sup>'. l($title, $link);
+        $return .= '<br /><sup><a href="'. $class .'" name="'. substr($class, 1) .'" rel="nofollow">['. $refnum .']</a></sup>'. $filter_link;
       }
       else {
-        $return .= '<br /><a href="'. $class .'" name="'. substr($class, 1) .'" rel="nofollow">['. $refnum .']</a>'. l($title, $link);
+        $return .= '<br /><a href="'. $class .'" name="'. substr($class, 1) .'" rel="nofollow">['. $refnum .']</a>'. $filter_link;
       }
     }
     $refnum++;
@@ -157,4 +158,4 @@ function citation_filter_filter_tips($de
   else {
     return t('You may post references in the form of [ref:link] or [ref:linkdestination|linktitle].');
   }
-}
\ No newline at end of file
+}
