function commerce_reports_stock_views_pre_execute in Commerce Reporting 7.4
Implements hook_views_pre_execute().
File
- modules/
stock/ commerce_reports_stock.module, line 21 - This module provides advanced stock reporting for Drupal Commerce.
Code
function commerce_reports_stock_views_pre_execute(&$view) {
if ($view->name == 'commerce_reports_stock') {
// Prime the stock reports data set into static cache.
_commerce_reports_stock_calculate_dataset();
}
}