You are here

function _authcache_views_view_get_options in Authenticated User Page Caching (Authcache) 7.2

Return options for the given view.

3 calls to _authcache_views_view_get_options()
authcache_views_authcache_p13n_fragment in modules/authcache_views/authcache_views.module
Implements hook_authcache_p13n_fragment().
authcache_views_views_post_render in modules/authcache_views/authcache_views.module
Implements hook_views_post_render().
authcache_views_views_pre_view in modules/authcache_views/authcache_views.module
Implements hook_views_pre_view().

File

modules/authcache_views/authcache_views.module, line 139
Authcache support for views module.

Code

function _authcache_views_view_get_options($view, $display_name) {
  if ($view->disabled) {
    return;
  }
  $display_options = $view->display[$display_name]->display_options;
  if (empty($display_options['authcache'])) {
    return;
  }
  return $display_options['authcache'];
}