Commit 88fc5175 authored by znerol's avatar znerol Committed by DamienMcKenna

Issue #3054841 by znerol, bibbos, DamienMcKenna, andres_de, pawel.traczynski,...

Issue #3054841 by znerol, bibbos, DamienMcKenna, andres_de, pawel.traczynski, botelho, andriyun, BrankoC, possiBri: Entity edit link exposed in views fields is gone after 7.x-3.23.
parent 36636f9b
......@@ -76,6 +76,7 @@ class views_handler_field_term_link_edit extends views_handler_field {
$term->vocabulary_machine_name = $values->{$this->aliases['vocabulary_machine_name']};
if ($data && taxonomy_term_edit_access($term)) {
$text = !empty($this->options['text']) ? $this->options['text'] : t('edit');
$this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = "taxonomy/term/$data/edit";
$this->options['alter']['query'] = drupal_get_destination();
return $text;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment