You are here

function printfriendly_help in PrintFriendly & PDF 8

Same name and namespace in other branches
  1. 8.3 printfriendly.module \printfriendly_help()
  2. 8.2 printfriendly.module \printfriendly_help()
  3. 7.5 printfriendly.module \printfriendly_help()
  4. 7 printfriendly.module \printfriendly_help()
  5. 7.2 printfriendly.module \printfriendly_help()
  6. 7.3 printfriendly.module \printfriendly_help()
  7. 7.4 printfriendly.module \printfriendly_help()

Implements hook_help().

File

./printfriendly.module, line 20
Adds PrintFriendly button to chosen node types and provides a block.

Code

function printfriendly_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the block module.
    case 'help.page.printfriendly':
      return '<p>' . t('PrintFriendly module lets you include a link to let your site users to quickly print, email or download the page as a PDF file using printfriendly service. <a href="http://www.printfriendly.com">PrintFriendly.com</a>') . '</p>';
  }
}