Index: favorite_nodes/favorite_nodes.module =================================================================== --- favorite_nodes/favorite_nodes.module (revision 106) +++ favorite_nodes/favorite_nodes.module (working copy) @@ -291,21 +291,37 @@ if (user_access(FAVORITE_NODES_PERM_ADD)) { if (!_favorite_nodes_check($node->nid)) { if (!$teaser) { - $links[] = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $node->nid); + $links['add_to_favorites'] = array( + 'title' => t('add to favorites'), + 'href' => 'favorite_nodes/add/'. $node->nid + ); } elseif ($teaser && variable_get('favorite_nodes_teaser', 0) == 1) { - $links[] = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $node->nid); + $links['add_to_favorites'] = array( + 'title' => t('add to favorites'), + 'href' => 'favorite_nodes/add/'. $node->nid + ); } } else { if (user_access(FAVORITE_NODES_PERM_VIEW)) { if (!$teaser) { - $links[] = array('title' => t('in favorites')); - $links[] = array('title' => t('remove from favorites'), 'href' => 'favorite_nodes/delete/'. $node->nid); + $links['in_favorites'] = array( + 'title' => t('in favorites') + ); + $links['remove_from_favorites'] = array( + 'title' => t('remove from favorites'), + 'href' => 'favorite_nodes/delete/'. $node->nid + ); } elseif ($teaser && variable_get('favorite_nodes_teaser', 0) == 1) { - $links[] = array('title' => t('in favorites')); - $links[] = array('title' => t('remove from favorites'), 'href' => 'favorite_nodes/delete/'. $node->nid); + $links['in_favorites'] = array( + 'title' => t('in favorites') + ); + $links['remove_from_favorites'] = array( + 'title' => t('remove from favorites'), + 'href' => 'favorite_nodes/delete/'. $node->nid + ); } } }