You are here

function _draggableviews_quick_check_structure in DraggableViews 7

Same name and namespace in other branches
  1. 6.3 draggableviews.inc \_draggableviews_quick_check_structure()
2 calls to _draggableviews_quick_check_structure()
draggableviews_views_pre_render in ./draggableviews.module
Implements hook_views_pre_render
_draggableviews_rebuild_hierarchy in ./draggableviews.inc
Rebuild hierarchy

File

./draggableviews.inc, line 224
Draggableviews processing functions. Rough summary of what functions in this file do:

Code

function _draggableviews_quick_check_structure($info) {

  // Calculate views page offset.
  $pager = $info['view']->query->pager;
  $items_per_page = isset($pager->options['items_per_page']) ? $pager->options['items_per_page'] : 0;
  $offset = $items_per_page * $pager->current_page + $pager->options['offset'];

  // Call function in checking mode (renumber = FALSE). The order value must begin with $offset.
  return _draggableviews_ascending_numbers($info, $offset, FALSE);
}