You are here

function contact_attach_perm in Contact Attach 6

Same name and namespace in other branches
  1. 5 contact_attach.module \contact_attach_perm()

Implementation of hook_perm().

File

./contact_attach.module, line 32
Allows attaching files to e-mails sent using the site-wide contact form.

Code

function contact_attach_perm() {
  if (module_exists('og_contact')) {
    $allowed_permissions = array(
      'send attachments with site-wide contact form',
      'send attachments with user contact form',
      'send attachments with og contact form',
    );
  }
  else {
    $allowed_permissions = array(
      'send attachments with site-wide contact form',
      'send attachments with user contact form',
    );
  }
  return $allowed_permissions;
}