You are here

function _simplenews_mail_uri in Simplenews 5

Format URL and link text for in-line display in plain text message.

@retun string Formatted URL with link text. Format 'url_text [ link_text ]'

Parameters

string $href: Absolute URL

string $link: Link text

File

./simplenews.module, line 1467

Code

function _simplenews_mail_uri($href, $link) {
  $href = _simplenews_mail_url($href);
  if ($href == $link) {
    $output = '[ ' . $href . ' ]';
  }
  else {
    $output = $link . ' [ ' . $href . ' ]';
  }
  return $output;
}