You are here

function print_friendly_urls in Printer, email and PDF versions 5.2

Same name and namespace in other branches
  1. 5 print.module \print_friendly_urls()

Auxiliary function to store the Printer-friendly URLs list as static.

Return value

string containing the list of URLs previously stored if $url is 0, or the current count otherwise.

2 calls to print_friendly_urls()
print_rewrite_urls in ./print.module
We need to manipulate URLs so that they are recorded as absolute in the Printer-friendly URLs list, and to add a [n] footnote marker.
_print_var_generator in ./print.module
Generates the HTML to insert in the template file

File

./print.module, line 568
Display printer-friendly versions of Drupal pages

Code

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