You are here

function _panels_everywhere_find_term_context in Panels Everywhere 6

Same name and namespace in other branches
  1. 7 plugins/tasks/site_template.inc \_panels_everywhere_find_term_context()
1 call to _panels_everywhere_find_term_context()
panels_everywhere_site_template_get_base_contexts in plugins/tasks/site_template.inc
Figure out the base contexts in use for the page.

File

plugins/tasks/site_template.inc, line 235

Code

function _panels_everywhere_find_term_context() {
  if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2))) {
    return taxonomy_get_term(arg(2));
  }
}