You are here

function panels_pane_access in Panels 7.3

Same name and namespace in other branches
  1. 5.2 includes/plugins.inc \panels_pane_access()
  2. 6.3 includes/plugins.inc \panels_pane_access()
  3. 6.2 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_ipe::render_pane_content in panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php
Render the interior contents of a single pane.
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 16
Contains helper code for plugins and contexts.

Code

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