You are here

function panels_pane_access in Panels 6.3

Same name and namespace in other branches
  1. 5.2 includes/plugins.inc \panels_pane_access()
  2. 6.2 includes/plugins.inc \panels_pane_access()
  3. 7.3 includes/plugins.inc \panels_pane_access()

Determine if a pane is visible.

Parameters

$pane: The pane object to test for access.

$display: The display object containing the pane object to be tested.

2 calls to panels_pane_access()
panels_renderer_legacy::render_regions in plugins/display_renderers/panels_renderer_legacy.class.php
Render all panes in the attached display into their panel regions, then render those regions.
panels_renderer_standard::prepare_panes in plugins/display_renderers/panels_renderer_standard.class.php
Prepare the list of panes to be rendered, accounting for visibility/access settings and rendering order.

File

includes/plugins.inc, line 17
Contains helper code for plugins and contexts.

Code

function panels_pane_access($pane, $display) {
  ctools_include('context');
  return ctools_access($pane->access, $display->context);
}