You are here

function panels_page_get_current in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_page/panels_page.module \panels_page_get_current()

Figure out if a panel is the current page; mostly useful in theming.

1 call to panels_page_get_current()
panels_page_view_page in panels_page/panels_page.module
Page callback to view a panel page.

File

panels_page/panels_page.module, line 538
panels_page.module

Code

function panels_page_get_current($page = NULL) {
  static $cache = NULL;
  if (isset($page)) {
    $cache = $page;
  }
  return $cache;
}