You are here

function _panels_context_filter in Panels 5.2

Same name and namespace in other branches
  1. 6.2 includes/plugins.inc \_panels_context_filter()
1 call to _panels_context_filter()
panels_context_filter in includes/plugins.inc
Return a keyed array of context that match the given 'required context' filters.

File

includes/plugins.inc, line 973
plugins.inc

Code

function _panels_context_filter($contexts, $required) {

  // TODO: Multiples
  $result = array();
  if (is_object($required)) {
    $result = $required
      ->filter($contexts);
  }
  return $result;
}