function freepager_views_post_render in Free pager 7.2
Implements hook_views_post_render().
File
- ./
freepager.module, line 158 - Some basic function for Free pager. Mostly implementations of Views hooks.
Code
function freepager_views_post_render(&$view, &$output, &$cache) {
// If we didn't find a match against the current path, there will still be
// result fetched from the view. To prevent an empty block from being rendered
// we tweak this result.
if (isset($view->display_handler->no_path_match) && $view->display_handler->no_path_match) {
$view->result = FALSE;
}
}