You are here

function views_calc_perm in Views Calc 5

Same name and namespace in other branches
  1. 6.3 views_calc.module \views_calc_perm()
  2. 6 views_calc.module \views_calc_perm()

Implementation of hook_perm().

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 74
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_perm() {
  return array(
    'create views calc',
    'administer views calc',
  );
}