You are here

function download_count_permission in Download Count 7.3

Same name and namespace in other branches
  1. 7.2 download_count.module \download_count_permission()

Implements hook_permission().

File

./download_count.module, line 24
Tracks file downloads for files stored in the drupal files table using the private files setting or custom private filefield.

Code

function download_count_permission() {
  $perms = array(
    'view download counts' => array(
      'title' => t('view download counts'),
    ),
    'skip download counts' => array(
      'title' => t('skip download counts'),
      'description' => t('Don\'t count downloads for users with this role.'),
    ),
    'reset download counts' => array(
      'title' => t('reset download counts'),
    ),
    'export download counts' => array(
      'title' => t('export download counts'),
    ),
  );
  return $perms;
}