You are here

function print_services_service_links in Service links 7.2

Same name and namespace in other branches
  1. 6.2 services/print_services.module \print_services_service_links()

Implements hook_service_links().

File

services/print_services.module, line 15
Extends Service Links with Print module support.

Code

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;
}