Skip to content
Snippets Groups Projects
Commit 93f114c0 authored by Aaron Bauman's avatar Aaron Bauman Committed by Tim Plunkett
Browse files

Issue #1638074 by aaronbauman: Fixed views_handler_field_url() is not...

Issue #1638074 by aaronbauman: Fixed views_handler_field_url() is not compatible with views_handler_field_contextual_links().
parent f8d58182
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -34,7 +34,10 @@ function options_form(&$form, &$form_state) { ...@@ -34,7 +34,10 @@ function options_form(&$form, &$form_state) {
function render($values) { function render($values) {
$value = $this->get_value($values); $value = $this->get_value($values);
if (!empty($this->options['display_as_link'])) { if (!empty($this->options['display_as_link'])) {
return l($this->sanitize_value($value), $value, array('html' => TRUE)); $this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = $value;
$text = !empty($this->options['text']) ? $this->sanitize_value($this->options['text']) : $this->sanitize_value($value, 'url');
return $text;
} }
else { else {
return $this->sanitize_value($value, 'url'); return $this->sanitize_value($value, 'url');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment