function statcounter_permission in StatCounter 7.2
Implements hook_permission().
File
- ./
statcounter.module, line 36 - Drupal Module: Statcounter Adds the required Javascript to the bottom of all your Drupal pages to allow tracking by the Statcounter statistics service.
Code
function statcounter_permission() {
return array(
'administer statcounter' => array(
'title' => t('Administer Statcounter'),
'description' => t('Perform maintenance tasks for Statcounter.'),
),
'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.'),
)),
),
);
}