Print: 4. API

Last modified: September 11, 2008 - 10:19

API

print_insert_link(), print_mail_insert_link(), print_pdf_insert_link()

The *_insert_link functions are available to content developers that prefer to place the printer-friendly link in a custom location. It is advisable to disable the regular Printer-friendly link so that it is not shown in both locations.

Calling the function like this:

print_insert_link()

will return the HTML for a link pointing to a Printer-friendly version of the current page.

It is also possible to specify the link to the page yourself:

print_insert_link("print/42")

will return the HTML pointing to the printer-friendly version of node 42.

 
 

Drupal is a registered trademark of Dries Buytaert.