function piwik_permission in Piwik Web Analytics 7
Same name and namespace in other branches
- 7.2 piwik.module \piwik_permission()
Implements hook_permission().
File
- ./
piwik.module, line 27 - Drupal Module: Piwik Adds the required Javascript to the bottom of all your Drupal pages to allow tracking by the Piwik statistics package.
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. %warning', array(
'%warning' => t('Warning: Give to trusted roles only; this permission has security implications.'),
)),
),
);
}