You are here

function heartbeat_views_views_pre_view in Heartbeat 6.3

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

Implementation of hook_views_pre_view()

File

views/heartbeat_views.module, line 19

Code

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