function piwik_permission in Piwik Web Analytics 7.2
Same name and namespace in other branches
- 7 piwik.module \piwik_permission()
Implements hook_permission().
File
- ./
piwik.module, line 48 - Drupal Module: Piwik
Code
function piwik_permission() {
return array(
'administer piwik' => array(
'title' => t('Administer Piwik'),
'description' => t('Perform maintenance tasks for Piwik.'),
),
'opt-in or out of tracking' => array(
'title' => t('Opt-in or out of tracking'),
'description' => t('Allow users to decide if tracking code will be added to pages or not.'),
),
'use PHP for tracking visibility' => array(
'title' => t('Use PHP for tracking visibility'),
'description' => t('Enter PHP code in the field for tracking visibility settings.'),
'restrict access' => TRUE,
),
'add JS snippets for piwik' => array(
'title' => t('Add JavaScript snippets'),
'description' => 'Enter JavaScript code snippets for advanced Piwik functionality.',
'restrict access' => TRUE,
),
);
}