function context_admin_get_current_page in Contextual Administration 7
A helper function for tracking current page_manager page.
Page Manager provides a function that is identical to this, however certain context_admin plugin proxy to another page_manager task and the "current page" can get lost, so this allows those plugins to store another layer of page.
2 calls to context_admin_get_current_page()
- context_admin_wbm_panelizer_access in contrib/
context_admin_wbm/ context_admin_wbm.module - Implements hook_panelizer_access
- context_admin_wbm_workbench_moderation_node_draft_render_page in contrib/
context_admin_wbm/ plugins/ context_admin/ workbench_moderation_node_draft.inc - The plugin's render callback
File
- ./
context_admin.module, line 283
Code
function context_admin_get_current_page($page = NULL) {
static $current = array();
if (isset($page)) {
$current = $page;
}
return $current;
}