- Issue created by @Summit
- 🇳🇱Netherlands Summit
May be it helps to investigate the warning, that I use Custom Formatters module together with Shurly.
And that I show than the Shurly Custom Formatter in a view.The Shurly Customer Formatter code is the following:
if ($items->getValue() && isset($items->getValue()[0]['uri'])) { $shorturl = $items->getValue()[0]['uri']; //$items->getValue()[0]['uri']; is the field in which the url which I want to use through shurly is set $shortitem = shurly_shorten($items->getValue()[0]['uri']); if (isset($shortitem['shortUrl'])) { $shorturl = $shortitem['shortUrl']; } $output = '<a href="' . $shorturl . '" class="btn btn-primary" rel="nofollow" target="_blank"> Output text</a>'; return $output; }
Greetings,
- 🇳🇱Netherlands Summit
Hi,
Could I somehow use the hook_shurly_redirect_after() for this?
Something like https://drupal.stackexchange.com/questions/53339/drupal-shurly-before-re... but then for redirect_after?greetings, Martijn