You are here

function _views_calc_has_items in Views Calc 5

Test that this is a full view, not just a summary

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

File

./views_calc.module, line 557
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_has_items($items) {
  if ($items && !$items[0]->num_nodes) {
    return true;
  }
  else {
    return false;
  }
}