You are here

function contact_attach_permission in Contact Attach 7

Implements hook_permission().

File

./contact_attach.module, line 39
Allows attaching files to messages sent using contact forms.

Code

function contact_attach_permission() {
  $allowed_permissions = array(
    'attach files on site-wide contact form' => array(
      'title' => t('Attach files on the site-wide contact form'),
      'description' => t('Send messages with attachments from the site-wide contact form.'),
    ),
    'attach files on personal contact forms' => array(
      'title' => t('Attach files on personal contact forms'),
      'description' => t('Send messages with attachments from personal contact forms.'),
    ),
  );
  return $allowed_permissions;
}