You are here

function contact_attach_perm in Contact Attach 5

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

Implementation of hook_perm().

File

./contact_attach.module, line 31
This is the main code file for the Contact attach module. This module gives users the ability of attaching one or more 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;
}