You are here

function print_friendly_urls in Printer, email and PDF versions 5

Same name and namespace in other branches
  1. 5.2 print.module \print_friendly_urls()
2 calls to print_friendly_urls()
print_generate_node in ./print.module
Outputs a printer friendly page.
print_rewrite_urls in ./print.module
We need to manipulate URLs in two manners, depending on the state of the Printer Friendly URLs setting: 1. When on, we need to show the original URLs, making sure that they are absolute (even anchor names). 2. When off, relative URLs must be…

File

./print.module, line 412
Display printer friendly versions of nodes (except books)

Code

function print_friendly_urls($url = 0) {
  static $urls = array();
  if ($url) {
    $urls[] = $url;
    return count($urls);
  }
  return $urls;
}