function _ctools_context_filter in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/context.inc \_ctools_context_filter()
1 call to _ctools_context_filter()
- ctools_context_filter in includes/
context.inc - Return a keyed array of context that match the given 'required context' filters.
File
- includes/
context.inc, line 254 - Contains code related to the ctools system of 'context'.
Code
function _ctools_context_filter($contexts, $required) {
$result = array();
if (is_object($required)) {
$result = $required
->filter($contexts);
}
return $result;
}