You are here

function panels_page_climb_stack in Panels 6.2

Checks to see if theme() is in the current call stack.

Let there be kluge. Horrible, awful, kitten-mass-murdering KLUGE.

1 call to panels_page_climb_stack()
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 198
panels_page.module

Code

function panels_page_climb_stack() {
  $backtrace = debug_backtrace();
  $result = array_filter($backtrace, '_panels_page_climb_stack');
  return !empty($result);
}