You are here

function panels_is_panels_page in Panels 5

Returns TRUE if the current page contains a panels layout. This can be checked in a theme to hide existing sidebars on panel pages, for example.

Parameters

$set (optional) used internally to set the page status:

1 call to panels_is_panels_page()
panels_panels_page in ./panels.module

File

./panels.module, line 729

Code

function panels_is_panels_page($set_panels = NULL) {
  static $is_panels;
  if ($set_panels == TRUE) {
    $is_panels = $set_panels;
  }
  return $is_panels;
}