function tvi_render_view_access in Taxonomy Views Integrator 6
Same name and namespace in other branches
- 7 tvi.module \tvi_render_view_access()
Checks access for the current taxonomy page.
We start off by checking view overrides, then take the normal permission for taxonomy/term pages, if no view is found.
1 string reference to 'tvi_render_view_access'
- tvi_menu_alter in ./
tvi.module - Implements hook_menu_alter().
File
- ./
tvi.module, line 195 - Enables use of views for taxonomy pages.
Code
function tvi_render_view_access($str_tids = '') {
list($view, $display) = tvi_get_view_info($str_tids);
if (is_object($view) && $display) {
if ($view
->access($display)) {
return TRUE;
}
return FALSE;
}
return user_access('access content');
}