In a field 'rewrite as link',
I wanted to be able to hide a custom link if the user doesn't have access to it,
like in contextual link or dropdown links

so I added the same code than contextual link for all 'rewrite as link' fields

the patch will follow

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

veroniqueg created an issue. See original summary.

veroniqueg’s picture

Status: Active » Needs review
FileSize
1.81 KB

here is the patch

Chris Matthews’s picture

Assigned: veroniqueg » Unassigned
Status: Needs review » Needs work
Issue tags: +Needs reroll

The 2 year old patch in #2 to views_handler_field.inc does not apply to the latest views 7.x-3.x-dev and if still relevant needs to be rerolled.

Checking patch handlers/views_handler_field.inc...
Hunk #1 succeeded at 423 (offset 21 lines).
Hunk #2 succeeded at 744 (offset 29 lines).
error: while searching for:
      return $text;
    }

    // If no scheme is provided in the $path, assign the default 'http://'.
    // This allows a url of 'www.example.com' to be converted to 'http://www.example.com'.
    // Only do this on for external URLs.

error: patch failed: handlers/views_handler_field.inc:1272
error: handlers/views_handler_field.inc: patch does not apply
Andrew Answer’s picture

Patch rerolled.