function matomo_permission in Matomo Analytics 7.2
Implements hook_permission().
File
- ./
matomo.module, line 48 - Drupal Module: Matomo
Code
function matomo_permission() {
return array(
'administer matomo' => array(
'title' => t('Administer Matomo'),
'description' => t('Perform maintenance tasks for Matomo.'),
),
'opt-in or out of matomo 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 matomo 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 matomo' => array(
'title' => t('Add JavaScript snippets'),
'description' => 'Enter JavaScript code snippets for advanced Matomo functionality.',
'restrict access' => TRUE,
),
);
}