function views_calc_permission in Views Calc 7
Implements hook_permission().
The permission 'administer views calc' has rights to alter the SQL operators that can be used in calculations.
The permission 'create views calc' has rights to create calculated fields and set calculation columns on views.
File
- ./
views_calc.module, line 100 - This module will allow you to add calculated fields to views tables and compute (SUM, COUNT, AVG, etc) columns of numeric data in a views table.
Code
function views_calc_permission() {
return array(
'create views calc' => array(
'title' => t('create views calc'),
'description' => t('TODO Add a description for \'create views calc\''),
),
'administer views calc' => array(
'title' => t('administer views calc'),
'description' => t('TODO Add a description for \'administer views calc\''),
),
);
}