function panels_page_concession_to_borked_tabs in Panels 6.2
Kluges local tasks to basically work like menu links instead of router items.
...like they should. This function is headdesking's raison d'etre.
1 string reference to 'panels_page_concession_to_borked_tabs'
- _panels_page_construct_dynamic_menu_link in panels_page/
panels_page.menu.inc - Helper function to create a menu item for a panel.
File
- panels_page/
panels_page.module, line 178 - panels_page.module
Code
function panels_page_concession_to_borked_tabs($name) {
static $first = TRUE;
if (!user_access('create panel-pages')) {
return FALSE;
}
if (!$first || panels_page_climb_stack()) {
$panel_page = panels_page_get_current();
return $panel_page->name == $name;
}
$first = FALSE;
return TRUE;
}