You are here

function simplenews_statistics_permission in Simplenews Statistics 7

Same name and namespace in other branches
  1. 7.2 simplenews_statistics.module \simplenews_statistics_permission()

Implements hook_permission().

File

./simplenews_statistics.module, line 83
Main simplenews statistics file.

Code

function simplenews_statistics_permission() {
  $permissions = array(
    'administer newsletter statistics' => array(
      'title' => t('Administer newsletter statistics'),
      'description' => t('Allows user to administer newsletter statistics.'),
    ),
    'view newsletter statistics' => array(
      'title' => t('View newsletter statistics'),
      'description' => t('Allows user to access the statistics.'),
    ),
  );
  return $permissions;
}