You are here

function panels_page_get_current in Panels 6.2

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

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

This function will return NULL until panels_page_set_current() has been called and loaded with data.

1 call to panels_page_get_current()
panels_page_concession_to_borked_tabs in panels_page/panels_page.module
Kluges local tasks to basically work like menu links instead of router items.

File

panels_page/panels_page.module, line 447
panels_page.module

Code

function panels_page_get_current() {

  // Take advantage of our .inc organization to know if it's at all possible
  // that there's a current page to be retrieved.
  if (!function_exists('panels_page_set_current')) {
    return FALSE;
  }
  $fubar = NULL;

  // PHP4 compatibility
  return panels_page_set_current($fubar);
}