You are here

print_services.module in Service links 6.2

Same filename and directory in other branches
  1. 7.2 services/print_services.module

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.module
View 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

Namesort descending Description
print_services_service_links Implementation of hook_service_links().