You are here

function print_link_allowed in Printer, email and PDF versions 7.2

Same name and namespace in other branches
  1. 5.4 print.module \print_link_allowed()
  2. 5.3 print.module \print_link_allowed()
  3. 6 print.module \print_link_allowed()
  4. 7 print.module \print_link_allowed()
  5. 5.x print.module \print_link_allowed()

Check if the link to the PF version is allowed depending on the settings.

Parameters

array $args: Array containing the possible parameters: view_mode, node, type, path.

Return value

bool FALSE if not allowed, TRUE otherwise

File

./print.module, line 392
Displays Printer-friendly versions of Drupal pages.

Code

function print_link_allowed($args) {
  return user_access('access print');
}