You are here

function _heartbeat_render_view in Heartbeat 6.3

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

Helper function to (re-)render the messages coming from views

2 calls to _heartbeat_render_view()
heartbeat_views_views_pre_render in views/heartbeat_views.module
Implementation of hook_views_pre_render()
heartbeat_views_views_pre_view in views/heartbeat_views.module
Implementation of hook_views_pre_view()

File

views/heartbeat_views.module, line 40

Code

function _heartbeat_render_view(&$view) {
  $limit = $view->pager['items_per_page'];
  if ($limit <= 0) {
    $limit = variable_get('heartbeat_block_public_items_max', 25);
  }
  $access = $view->filter['access_type']->heartbeat_access;
  $heartbeat_relations = $view->filter['access_type']->heartbeat_relations;
  $view->result = _heartbeat_group_views_messages($view->result, $access, $heartbeat_relations, $limit);
}