You are here

function _views_calc_is_calc_view in Views Calc 5

Test if this is a views_calc view.

1 call to _views_calc_is_calc_view()
views_calc_views_pre_view in ./views_calc.module
Implementation of hook_views_pre_view()

File

./views_calc.module, line 546
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_is_calc_view($view) {
  if (!$view) {
    return false;
  }
  if ($view->vid && $view->page_type == 'views_calc') {
    return true;
  }
  return false;
}