You are here

function print_mail_link_allowed in Printer, email and PDF versions 7.2

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

Check if the link to send by email 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_mail/print_mail.module, line 331
Displays Printer-friendly versions of Drupal pages.

Code

function print_mail_link_allowed($args) {
  return user_access('access send by email');
}