print_services.module in Service links 6.2
Same filename and directory in other branches
Extends Service Links with Print module support.
These services work only with alias enabled in Print module.
@author Fabio Mucciante (TheCrow)
File
services/print_services.moduleView source
<?php
/**
* @file
* Extends Service Links with Print module support.
*
* These services work only with alias enabled in Print module.
*
* @author Fabio Mucciante (TheCrow)
*/
/**
* Implementation of hook_service_links().
*/
function print_services_service_links() {
$links = array();
$links['print'] = array(
'name' => 'Print HTML',
'link' => '<front-page>print/<query>',
'description' => t('Printable version'),
);
if (module_exists('print_pdf')) {
$links['printpdf'] = array(
'name' => 'Print PDF',
'link' => '<front-page>printpdf/<query>',
'description' => t('PDF version'),
);
}
if (module_exists('print_mail')) {
$links['printmail'] = array(
'name' => 'Print Mail',
'link' => '<front-page>printmail/<query>',
'description' => t('Send to a friend'),
);
}
return $links;
}
Functions
Name | Description |
---|---|
print_services_service_links | Implementation of hook_service_links(). |