You are here

function heartbeat_views_views_pre_view in Heartbeat 6.4

Same name and namespace in other branches
  1. 6.3 views/heartbeat_views.module \heartbeat_views_views_pre_view()

Implementation of hook_views_pre_view().

File

views/heartbeat_views.module, line 70

Code

function heartbeat_views_views_pre_view(&$view, &$display_id = 0, &$args = NULL) {
  if ($view->base_table == 'heartbeat_activity' && !empty($view->result)) {
    _heartbeat_render_view($view);
    $view->rendered = TRUE;
  }
}