You are here

function _panels_everywhere_find_term_context in Panels Everywhere 7

Same name and namespace in other branches
  1. 6 plugins/tasks/site_template.inc \_panels_everywhere_find_term_context()

Attempt to extract a term from the environment to turn into a 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 214

Code

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