--- /Users/chellman/Desktop/dl/favorite_nodes/favorite_nodes.module	2008-03-14 10:27:27.000000000 -0500
+++ /Users/chellman/Sites/drupal/sites/all/modules/favorite_nodes/favorite_nodes.module	2008-08-14 11:30:19.000000000 -0500
@@ -268,12 +268,11 @@ function favorite_nodes_link($type, $nod
     if (variable_get(FAVORITE_NODES_NODE_TYPE . $node->type, 0)) {
       if (user_access(FAVORITE_NODES_PERM_ADD)) {
         if (!_favorite_nodes_check($node->nid)) {
-          $links[] = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $node->nid);
-        }
-        else {
+          $links['favorite_nodes_add'] = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $node->nid);
+        } else {
           if (user_access(FAVORITE_NODES_PERM_VIEW)) {
-            $links[] = array('title' => t('in favorites'));
-            $links[] = array('title' => t('remove from favorites'), 'href' => 'favorite_nodes/delete/'. $node->nid);
+            $links['favorite_nodes_in'] = array('title' => t('in favorites'));
+            $links['favorite_nodes_remove'] = array('title' => t('remove from favorites'), 'href' => 'favorite_nodes/delete/'. $node->nid);
           }
         }
       }
