You are here

function print_insert_link in Printer, email and PDF versions 5.2

Same name and namespace in other branches
  1. 5.4 print.module \print_insert_link()
  2. 5.3 print.module \print_insert_link()
  3. 6 print.module \print_insert_link()
  4. 7.2 print.module \print_insert_link()
  5. 7 print.module \print_insert_link()
  6. 5.x print.module \print_insert_link()

Auxiliary function to display a formatted Printer-friendly link

Return value

string

1 call to print_insert_link()
print_help in ./print.module
Implementation of hook_help()

File

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

Code

function print_insert_link($path = NULL) {
  if ($path === NULL) {
    $path = PRINT_PATH . "/" . $_GET['q'];
  }
  $format = print_format_link();
  return '<span class="print">' . l($format['text'], $path, $format['attributes'], NULL, NULL, TRUE, FALSE) . '</span>';
}