--- /home/httpd/html/dev/sites/all/modules/favorite_nodes.module	2008-06-24 14:57:14.000000000 +0200
+++ favorite_nodes.module	2008-06-24 13:39:05.000000000 +0200
@@ -554,21 +554,13 @@ function favorite_nodes_views_tables() {
       ),
       'remove' => array(
         'name' => t('Favorite Nodes: Remove from Favourites'),
-        'notafield' => TRUE,
-        'handler' => array(
-          'favouite_nodes_handler_remove_link' => t('return to user profile'),
-          'favouite_nodes_handler_remove_link_destination' => t('return to view')
-        ),
+        'handler' => 'favouite_nodes_handler_remove_link',
         'help' => t('A link which allows the user to remove from favourites'),
         'sortable' => FALSE,
       ),
       'remove/add' => array(
         'name' => t('Favorite Nodes: Remove/add from Favorites'),
-        'notafield' => TRUE,
-        'handler' => array(
-          'favouite_nodes_handler_remove_add_link' => t('return to user profile'),
-          'favouite_nodes_handler_remove_add_link_destination' => t('return to view')
-          ),
+        'handler' => 'favouite_nodes_handler_remove_add_link',
         'help' => t('A link which allows the user to remove/add to/from favoruites'),
         'sortable' => false
       ),
@@ -671,26 +663,14 @@ function favorite_nodes_handler_user_cou
 function favouite_nodes_handler_remove_link($fieldinfo, $fielddata, $value, $data) {
   return l(t('remove from favorites'), 'favorite_nodes/delete/'. $data->nid);
 }
-function favouite_nodes_handler_remove_link_destination($fieldinfo, $fielddata, $value, $data) {
-  return l(t('remove from favorites'), 'favorite_nodes/delete/'. $data->nid, NULL, drupal_get_destination());
-}
 function favouite_nodes_handler_remove_add_link($fieldinfo, $fielddata, $value, $data) {
   global $user;
   if (!_favorite_nodes_check($data->nid, $user->uid)) {
-    $link = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $data->nid);
-  }
-  else {
-    $link = array('title' => t('remove from favorites'), 'href' => 'favorite_nodes/delete/'. $data->nid);
-  }
-  return l($link['title'], $link['href']);
-}
-function favouite_nodes_handler_remove_add_link_destination($fieldinfo, $fielddata, $value, $data) {
-  global $user;
-  if (!_favorite_nodes_check($data->nid, $user->uid)) {
-    $link = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $data->nid);
+    $link = array('title' => t('add to favorites'), 'href' => 'favorite_nodes/add/'. $node->nid);
+    return theme('link', $link);
   }
   else {
-    $link = array('title' => t('remove from favorites'), 'href' => 'favorite_nodes/delete/'. $data->nid);
+    $link = array('title' => t('remove from favorites'), 'href' => 'favorite_nodes/delete/'. $node->nid);
+    return theme('link', $link);
   }
-  return l($link['title'], $link['href'], NULL, drupal_get_destination());
 }
\ Kein Zeilenumbruch am Dateiende.
