? .git
Index: modules/comment/views_handler_field_comment_link.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/comment/views_handler_field_comment_link.inc,v
retrieving revision 1.2
diff -u -p -r1.2 views_handler_field_comment_link.inc
--- modules/comment/views_handler_field_comment_link.inc	10 Sep 2008 00:16:14 -0000	1.2
+++ modules/comment/views_handler_field_comment_link.inc	15 Dec 2009 03:06:57 -0000
@@ -13,6 +13,8 @@ class views_handler_field_comment_link e
   function option_definition() {
     $options = parent::option_definition();
     $options['text'] = array('default' => '', 'translatable' => TRUE);
+    $options['absolute_url'] = array('default' => FALSE, 'bool' => TRUE);
+    $options['raw_link'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
   }
 
@@ -23,6 +25,18 @@ class views_handler_field_comment_link e
       '#title' => t('Text to display'),
       '#default_value' => $this->options['text'],
     );
+    $form['absolute_url'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Use absolute URL'),
+      '#description' => t('If checked, comment link will produce an URL with http:// attached to it.'),
+      '#default_value' => $this->options['absolute_url'],
+    );
+    $form['raw_link'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Show as raw link'),
+      '#default_value' => $this->options['raw_link'],
+      '#description' => t('If enabled, this field will be displayed as the raw URL as generated by the Drupal url() function, making it useful to be used as the link text for other fields. "Text to display" field value will be ignored.'),
+    );
   }
 
   function query() {
@@ -31,8 +45,16 @@ class views_handler_field_comment_link e
   }
 
   function render($values) {
-    $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
-    return l($text, "node/" . $values->{$this->aliases['nid']}, array('html' => TRUE, 'fragment' => "comment-" . $values->{$this->aliases['cid']}));
+    // Provide a raw URL.
+    if ($this->options['raw_link']) {
+      $link = url( "node/" . $values->{$this->aliases['nid']}, array('html' => TRUE, 'fragment' => "comment-" . $values->{$this->aliases['cid']}, 'absolute' => $this->options['absolute_url']));
+    }
+    // Provide a full link.
+    else {
+      $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
+      $link = l($text, "node/" . $values->{$this->aliases['nid']}, array('html' => TRUE, 'fragment' => "comment-" . $values->{$this->aliases['cid']}, 'absolute' => $this->options['absolute_url']));
+    }
+    return $link;
   }
 }
 
Index: modules/comment/views_handler_field_comment_link_edit.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/comment/views_handler_field_comment_link_edit.inc,v
retrieving revision 1.1
diff -u -p -r1.1 views_handler_field_comment_link_edit.inc
--- modules/comment/views_handler_field_comment_link_edit.inc	3 Sep 2008 19:21:29 -0000	1.1
+++ modules/comment/views_handler_field_comment_link_edit.inc	15 Dec 2009 03:06:57 -0000
@@ -9,6 +9,11 @@ class views_handler_field_comment_link_e
     $this->additional_fields['uid'] = 'uid';
   }
 
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+    unset($form['raw_link']);
+  }
+
   function render($values) {
     // ensure user has access to edit this comment.
     $comment = new stdClass();
@@ -19,7 +24,7 @@ class views_handler_field_comment_link_e
     }
 
     $text = !empty($this->options['text']) ? $this->options['text'] : t('edit');
-    return l($text, "comment/edit/" . $values->{$this->aliases['cid']});
+    return l($text, "comment/edit/" . $values->{$this->aliases['cid']}, array('absolute' => $this->options['absolute_url']));
   }
 }
 
Index: modules/comment/views_handler_field_comment_link_reply.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/comment/views_handler_field_comment_link_reply.inc,v
retrieving revision 1.1
diff -u -p -r1.1 views_handler_field_comment_link_reply.inc
--- modules/comment/views_handler_field_comment_link_reply.inc	3 Sep 2008 19:21:29 -0000	1.1
+++ modules/comment/views_handler_field_comment_link_reply.inc	15 Dec 2009 03:06:57 -0000
@@ -11,6 +11,11 @@ class views_handler_field_comment_link_r
       return;
     }
     $text = !empty($this->options['text']) ? $this->options['text'] : t('reply');
-    return l($text, "comment/reply/" . $values->{$this->aliases['nid']} . '/' . $values->{$this->aliases['cid']});
+    return l($text, "comment/reply/" . $values->{$this->aliases['nid']} . '/' . $values->{$this->aliases['cid']}, array('absolute' => $this->options['absolute_url']));
+  }
+
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+    unset($form['raw_link']);
   }
 }
Index: modules/node/views_handler_field_node_link.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/node/views_handler_field_node_link.inc,v
retrieving revision 1.1
diff -u -p -r1.1 views_handler_field_node_link.inc
--- modules/node/views_handler_field_node_link.inc	3 Sep 2008 19:21:29 -0000	1.1
+++ modules/node/views_handler_field_node_link.inc	15 Dec 2009 03:06:58 -0000
@@ -13,6 +13,8 @@ class views_handler_field_node_link exte
     $options = parent::option_definition();
 
     $options['text'] = array('default' => '', 'translatable' => TRUE);
+    $options['absolute_url'] = array('default' => FALSE, 'bool' => TRUE);
+    $options['raw_link'] = array('default' => FALSE, 'bool' => TRUE);
 
     return $options;
   }
@@ -24,6 +26,19 @@ class views_handler_field_node_link exte
       '#title' => t('Text to display'),
       '#default_value' => $this->options['text'],
     );
+    $form['absolute_url'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Use absolute URL'),
+      '#description' => t('If checked, node link will produce an URL with http:// attached to it.'),
+      '#default_value' => $this->options['absolute_url'],
+    );
+    $form['raw_link'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Show as raw link'),
+      '#default_value' => $this->options['raw_link'],
+      '#description' => t('If enabled, this field will be displayed as the raw URL as generated by the Drupal url() function, making it useful to be used as the link text for other fields. "Text to display" field value will be ignored.'),
+    );
+
   }
 
   function query() {
@@ -32,8 +47,16 @@ class views_handler_field_node_link exte
   }
 
   function render($values) {
-    $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
     $nid = $values->{$this->aliases['nid']};
-    return l($text, "node/$nid");
+    // Provide a raw URL.
+    if ($this->options['raw_link']) {
+      $link = url("node/$nid", array('absolute' => $this->options['absolute_url']));
+    }
+    // Provide a full link.
+    else {
+      $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
+      $link = l($text, "node/$nid", array('absolute' => $this->options['absolute_url']));
+    }
+    return $link;
   }
 }
Index: modules/node/views_handler_field_node_link_delete.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/node/views_handler_field_node_link_delete.inc,v
retrieving revision 1.1
diff -u -p -r1.1 views_handler_field_node_link_delete.inc
--- modules/node/views_handler_field_node_link_delete.inc	3 Sep 2008 19:21:29 -0000	1.1
+++ modules/node/views_handler_field_node_link_delete.inc	15 Dec 2009 03:06:58 -0000
@@ -11,6 +11,11 @@ class views_handler_field_node_link_dele
     $this->additional_fields['format'] = array('table' => 'node_revisions', 'field' => 'format');
   }
 
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+    unset($form['raw_link']);
+  }
+
   function render($values) {
     // ensure user has access to edit this node.
     $node = new stdClass();
@@ -23,8 +28,13 @@ class views_handler_field_node_link_dele
       return;
     }
 
+    $options = array(
+      'query' => drupal_get_destination(),
+      'absolute' => $this->options['absolute_url'],
+    );
+
     $text = !empty($this->options['text']) ? $this->options['text'] : t('delete');
-    return l($text, "node/$node->nid/delete", array('query' => drupal_get_destination()));
+    return l($text, "node/$node->nid/delete", $options);
   }
 }
 
Index: modules/node/views_handler_field_node_link_edit.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/node/views_handler_field_node_link_edit.inc,v
retrieving revision 1.1
diff -u -p -r1.1 views_handler_field_node_link_edit.inc
--- modules/node/views_handler_field_node_link_edit.inc	3 Sep 2008 19:21:29 -0000	1.1
+++ modules/node/views_handler_field_node_link_edit.inc	15 Dec 2009 03:06:58 -0000
@@ -11,6 +11,11 @@ class views_handler_field_node_link_edit
     $this->additional_fields['format'] = array('table' => 'node_revisions', 'field' => 'format');
   }
 
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+    unset($form['raw_link']);
+  }
+
   function render($values) {
     // ensure user has access to edit this node.
     $node = new stdClass();
@@ -23,8 +28,13 @@ class views_handler_field_node_link_edit
       return;
     }
 
+    $options = array(
+      'query' => drupal_get_destination(),
+      'absolute' => $this->options['absolute_url'],
+    );
+
     $text = !empty($this->options['text']) ? $this->options['text'] : t('edit');
-    return l($text, "node/$node->nid/edit", array('query' => drupal_get_destination()));
+    return l($text, "node/$node->nid/edit", $options);
   }
 }
 
Index: modules/node/views_handler_field_node_revision_link_delete.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/node/views_handler_field_node_revision_link_delete.inc,v
retrieving revision 1.1
diff -u -p -r1.1 views_handler_field_node_revision_link_delete.inc
--- modules/node/views_handler_field_node_revision_link_delete.inc	3 Sep 2008 19:21:29 -0000	1.1
+++ modules/node/views_handler_field_node_revision_link_delete.inc	15 Dec 2009 03:06:58 -0000
@@ -16,6 +16,11 @@ class views_handler_field_node_revision_
     return user_access('delete revisions') || user_access('administer nodes');
   }
 
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+    unset($form['raw_link']);
+  }
+  
   function render($values) {
     // ensure user has access to edit this node.
     $node = new stdClass();
@@ -32,7 +37,13 @@ class views_handler_field_node_revision_
     if ($node->vid == $values->{$this->aliases['node_vid']}) {
       return;
     }
+
+    $options = array(
+      'query' => drupal_get_destination(),
+      'absolute' => $this->options['absolute_url'],
+    );
+
     $text = !empty($this->options['text']) ? $this->options['text'] : t('delete');
-    return l($text, "node/$node->nid/revisions/$node->vid/delete", array('query' => drupal_get_destination()));
+    return l($text, "node/$node->nid/revisions/$node->vid/delete", $options);
   }
 }
Index: modules/node/views_handler_field_node_revision_link_revert.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/node/views_handler_field_node_revision_link_revert.inc,v
retrieving revision 1.1
diff -u -p -r1.1 views_handler_field_node_revision_link_revert.inc
--- modules/node/views_handler_field_node_revision_link_revert.inc	3 Sep 2008 19:21:29 -0000	1.1
+++ modules/node/views_handler_field_node_revision_link_revert.inc	15 Dec 2009 03:06:58 -0000
@@ -16,6 +16,11 @@ class views_handler_field_node_revision_
     return user_access('revert revisions') || user_access('administer nodes');
   }
 
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+    unset($form['raw_link']);
+  }
+  
   function render($values) {
     // ensure user has access to edit this node.
     $node = new stdClass();
@@ -33,7 +38,12 @@ class views_handler_field_node_revision_
       return;
     }
 
+    $options = array(
+      'query' => drupal_get_destination(),
+      'absolute' => $this->options['absolute_url'],
+    );
+
     $text = !empty($this->options['text']) ? $this->options['text'] : t('revert');
-    return l($text, "node/$node->nid/revisions/$node->vid/revert", array('query' => drupal_get_destination()));
+    return l($text, "node/$node->nid/revisions/$node->vid/revert", $options);
   }
 }
