You are here

function panels_required_context::select in Panels 5.2

Same name and namespace in other branches
  1. 6.2 includes/plugins.inc \panels_required_context::select()
1 call to panels_required_context::select()
panels_optional_context::select in includes/plugins.inc
1 method overrides panels_required_context::select()
panels_optional_context::select in includes/plugins.inc

File

includes/plugins.inc, line 91
plugins.inc

Class

panels_required_context
This is used to explain to Panels what context is required.

Code

function select($contexts, $context) {
  if (empty($context) || empty($contexts[$context])) {
    return FALSE;
  }
  return $contexts[$context];
}