function theme_print_link in Printer, email and PDF versions 5
1 theme call to theme_print_link()
- print_link in ./
print.module - Implementation of hook_link().
File
- ./
print.module, line 425 - Display printer friendly versions of nodes (except books)
Code
function theme_print_link($node) {
$print_settings = variable_get('print_settings', print_settings_default());
$attributes = array(
'title' => t('Display a printer friendly version of this page.'),
'class' => 'print-page',
);
if ($print_settings['newwindow']) {
$attributes['target'] = '_blank';
}
return array(
'title' => t('Printer friendly version'),
'href' => "print/{$node->nid}",
'attributes' => $attributes,
);
}